- This topic has 0 replies, 1 voice, and was last updated 3 years, 8 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Extensions › Office 365 › Invalid Message Id
I was testing the emails sent through your system using Mail-Tester.com and got the error: SMTP: Message-Id is not valid, according to RFC 2822
I wrapped the internetMessageId in “<” and “>” and the error went away.
The changes I made were to /post-smtp-extension-office365/inc/Engine.php
Line 79 went from:
`
$payload[‘Message’][‘internetMessageId’] = $message->getMessageId();
`
to
`
$payload[‘Message’][‘internetMessageId’] = “<” . $message->getMessageId() . “>”;
`
I hope it helps someone else.