Tuesday 4 June 2019

header - Php Mailer problem - messages marked as spam -

A few days ago I upgraded Php Mailer and now some email providers my messages mark as spam. This is what I see in the headers of the marked messages:



X-SpamTest-Info: {TO: header missing}


This is from my php file.




$mail->From       = $sender;
$mail->FromName = $sender_name;
$mail->Subject = $subject;
$mail->Body = $body;
$mail->AddAddress($recipient,$recipient_name);
$mail->AddReplyTo($replyto,"No-Reply");


Dont know how to add "to" header and can't understand how it's possible that "to" is missing but email arrives to the correct "to" address...

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...