Thread Starter
domzy7
(@domzy7)
Issue fixed:
During a deliverable test, I noticed that I was getting the error INVALID_MSGID Message-Id is not valid, according to RFC 2822for emails sent using SMTP Mail Mailer / Email Login + SendGrid API. This was actually lowering SpamAssassin’s score, which led to the email being considered spam.
The problem seems to be that the Message-IDangle brackets are missing from the header around its value, eg. Message-ID: [email protected] instead of Message-ID: <[email protected]>. Once I created the tiny array below, I stopped getting the error.
/Postman/PostmanWpMail.php line 87:
– return $id . ‘@’ . str_replace(‘www.’, ”, $hostName);
+ return ‘<‘ . $id . ‘@’ . str_replace(‘www.’, ”, $hostName) . ‘>’;`
-
This reply was modified 4 years, 11 months ago by domzy7.