Warning: mail() [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in D:\Hosting\6284117\html\submitemail.php on line 78
Este es el CODIGO.... me ayudan a detectar el problema?? Porfis??
Código PHP:
<?
/************************
* Variables you can change
*************************/
$mailto = "[email protected]";
$cc = "";
$bcc = "";
$subject = "From your Website";
$vname = "";
/************************
* do not modify anything below unless you know PHP/HTML/XHTML
*************************/
$email = $_POST['email'];
function validateEmail($email)
{
if(eregi('^[A-Z, a-z, 0-9._-]+@[A-Z, a-z, 0-9-]+\.[A-Z, a-z, 0-9]{2,4}(\.[A-Z, a-z, 0-9]{2,3})?(\.[A-Z, a-z, 0-9]{2,3})?
$', $email))
return true;
else
return false;
}
if((strlen($_POST['name']) < 1 ) || (strlen($email) < 1 ) || (strlen($_POST['message']) < 1 ) || validateEmail($email) ==
true){
$emailerror .= '';
if(strlen($_POST['name']) < 1 ){
$emailerror .= '<li>Enter name</li>';
}
if(strlen($email) < 1 ){
$emailerror .= '<li>Enter email</li>';
}
if(validateEmail($email) == true) {
$emailerror .= '<li>Enter valid email</li>';
}
if(strlen($_POST['message']) < 1 ){
$emailerror .= '<li>Enter message</li>';
}
} else {
$emailerror .= "Your email has been sent successfully";
// NOW SEND THE ENQUIRY
$timestamp = date("F j, Y, g:ia");
$messageproper ="\n\n" .
"Name: " .
ucwords($_POST['name']) .
"\n" .
"Email: " .
ucwords($email) .
"\n" .
"Website: " .
ucwords($_POST['website']) .
"\n" .
"Company: " .
ucwords($_POST['company']) .
"\n" .
"Comments: " .
$_POST['message'] .
"\n" .
"\n\n" ;
$messageproper = trim(stripslashes($messageproper));
mail($mailto, $subject, $messageproper, "From: \"$vname\" <".$_POST['e_mail'].">\nReply-To: \"".ucwords
($_POST['vname'])."\" <".$_POST['e_mail'].">\nX-Mailer: PHP/");
}
?>
<div id='emailerror'>
<ul>
<? echo $emailerror; ?>
</ul>
</div>