-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phpmail and mailinblack #2781
Comments
I can't tell from the code. Look at the headers of received messages and compare them. I don't know mailinblack, but I would hope they give you some feedback on why they act as they do, probably in extra headers. |
In fact, if i send the same mail:
|
I'd say it's a mail server configuration issue. Are you sure your messages are being sent at all? Check your mail server logs to see what is happening to them. |
I've just compare the two mail (the one who get reply from mailinblack - and the other one) and i noticed that "mine" (the one who didn't get a reply) has a "Message-ID" generated by phpmailer but not with a real qualified name (ex: @linux) as RFC said. The mail who works has a "Message-ID" like "[email protected]". Can it be a way ? |
The message IDs that PHPMailer generates are RFC compliant, however, you can always override it and set your own to see if that helps. Simply:
though of course you are then responsible for ensuring it's unique for every message. |
Hi,
Since some months i user Phpmailer to send all my company emails to replace Outlook.
All is ok ... apparently, but we never get anti-spam/mailinblack verification email.
btw if we send the same mail with Outlook, we get back mailinblack verification email.
Emails are send via a domain with valid SPF/DKIM.
I verify my configuration and all seems ok.
That's a part of my header code to see if you've got an idea:
$mail = new PHPMailer\PHPMailer\PHPMailer;
$mail->setLanguage('fr');
$mail->IsSMTP();
$mail->Timeout=5;
$mail->Host = $compte["HOST"];
$mail->Port = $compte["PORT_OUT"];
$mail->SMTPAuth = true;
$mail->XMailer = " ";
$mail->Username = $compte["LOGIN"];
$mail->Password = $compte["PASS"];
if(isset($compte["DKIM_DOMAIN"])) {
$mail->DKIM_domain = $compte["DKIM_DOMAIN"];
$mail->DKIM_private = $compte["DKIM_PRIVATE"];
$mail->DKIM_selector = $compte["DKIM_SELECTOR"];
$mail->DKIM_passphrase = $compte["DKIM_PASSPHRASE"];
$mail->DKIM_identity = $compte["DKIM_IDENTITY"];
}
$mail->IsHTML(true);
$mail->CharSet = "UTF-8";
$mail->Encoding = "base64";
$mail->setFrom($deMail,$de);
$mail->addReplyTo($deMail, $de);
$mail->Sender = $deMail;
$mail->addCustomHeader("Sender",$de . " <" . $deMail . ">");
$mail->addCustomHeader("List-Unsubscribe","<mailto:" . $deMail . ">");
....
There's something more to do ?
The text was updated successfully, but these errors were encountered: