Your Location is: Home > Php

email phpmailer via smtp server block by anti-spam gateway

From: Qatar View: 2779 you2525 

Question

I have a register form that send an email to the user. here is the way i do it (with a smtp server)

$fromserver = "[email protected]"; 
require("PHPMailer/PHPMailerAutoload.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "XXXX.fr";
$mail->SMTPAuth = false;
$mail->Port = 25;
$mail->SMTPSecure = false;                                  
$mail->IsHTML(true);
$mail->SMTPAutoTLS = false;
$mail->From = "[email protected]";
$mail->FromName = "xxx";
$mail->Sender = $fromserver;
$mail->Subject = $subject;
$mail->Body = $body;
$mail->AddAddress($email_to);
if(!$mail->Send())
{
  echo "Mailer Error: " . $mail->ErrorInfo;
} else {
  echo "<div>
<p><strong>SUCCESS Consultez votre messagerie, un email vous a éyé envoyé pour valider votre inscription.<strong></p></div><br /><br /><br />";
}

It works great, the users receive the email. BUT for user with a specific domain like [email protected], they don't receiv the mail. (in the spam neither)

I check on the log of the SMTP server, and the email seems to be send. here is the log :

Nov 9 10:37:16 xxx[77986]: (77900-06) FWD via SMTP: <[email protected]xxx.com> -> <[email protected]>,BODY=8BITMIME xxx x.x.x Ok, id=77900-06, from MTA([xxx.x.x.x]:10025): xxx x.x.x Ok: queued as 849E02E2B7

I don't know why it doesn't work for them, can it be a issue with a firewall for the specific domain or something like that, that blocks the email ? thank you for your time.

UPDATE : i know now that an anti-spam gateway had blocked the mail send to [email protected] That is why the mail hasn't been received. Is there a way to pass throw an anti-spam gateway ?? Thank you

Best answer