Hi, this is the code, where declare or add the option for sendmail? in another server not use, and recive, the e-mails, but here not result.
// Verify address
if(ereg("^(.+)@(.+).(.+)$",$to))
{
}else{
echo("Need valid e-mail. (to)
");
echo("<script>alert("click for back");history.go(-1)");
exit;
}
if(ereg("^(.+)@(.+).(.+)$",$email))
{
}else{
echo("Need valid e-mail address. (Email)
");
echo("<script>alert("Error:Click for back");history.go(-1)");
exit;
}
// Tags and Spaces
$destino =strip_tags(trim($to));
$subject ="Contact from WebSite";
$motivo ="Write: "+strip_tags(trim($nombre))+"n"+"E-Mail : "+strip_tags(trim($email))+"n"+"Messsage : "+strip_tags(trim($motivo));
$headers ="Mime-Version: 1.0rnContent-Type:text/plain charset="ISO-8859-1"rn";
$headers .="Content-Transfer-Encoding: 7bitrn";
$headers .="X-Priority: 3rn";
$headers .="X-PHP-Mail-Priority: Normalrn";
$headers .="X-Mime-OLE: Produced by MS MimeOLE v5.00.3000.100rn";
$headers .="X-Mailer: PHP Mail generated by:PHPMailer v1.0rn";
$headers .="From: $SERVER_NAME <$from>rn";
$headers .="Reply-to: $fromrn";
// DR
$motivo .="n";
$motivo .="n-------------------------------------n";
$motivo .="Mailern";
$motivo .="CRn";
$motivo .="==================================n";
// Mail Send
@$send=mail($destino,$subject,$motivo,$headers);
// Echo result
if($send==1){
echo("
E-mail Enviado");
echo("
Message send....
Your message are send
");
echo("Cooming soon answer.
");
echo("Go to home
");
echo("HOME
");
echo("");
}else{
echo("
FAILED Not sended");
echo("
Sorry ....
Have a problem
");
echo("to process the e-mail
try in a hours...
");
echo("
echo("");
}
exit();
?>