Rejected emails: Messages with multiple addresses in From: header are not accepted – gsmtp

emailgmailrfcsmtp

We host a service which can send emails on behalf of client businesses to end users. These emails must appear to be from the client business, even though they are generated from within our system.

We had previously been using multiple addresses in the From: header whilst also supplying the Sender: header, as described here https://serverfault.com/a/554615.

On around the 3rd of March we started receiving the following bounces consistently from gmail.

smtp;550 5.7.1 [XX.XX.XX.XX 13] Messages with multiple addresses in From: header are not accepted. XXXXXXXXXXXXX - gsmtp

Here is a snippet of the headers we used to send:

Subject: Example Email
Sender: noreply@sender.com
From: <example@test.com>, noreply@sender.com
Reply-To: <example@test.com>
To: <AmySmith@example.com>

Does anyone have any idea why gmail would have started blocking the emails and does anyone have a suggestion for a better way for us to send on behalf of another address?

Best Answer

Hey encode your mail like setEncoding("UTF-8").... it will fixe it

Related Topic