问题
We are using the Gmail API to send emails on behalf of the users of our App. On the header of the emails we send via the Gmail API, we are setting a custom Message-ID.
Nevertheless Gmail is overwriting the Message-ID we set with a different one . The following are some Message-IDs that we have tried:
<8368110f-6ffc-46f8-8e67-7ebf0e1a1d83@domain>
<4fb7a8b7013099c524f70906e009b46218461fff0b2dc0f8b794eb2df26e93d7@domain>
Any idea why this ID overwriting is happening ?
I would really appreciate any help
Thanks in advance
回答1:
You can try custom id with .(dot) before left side of '@'. It worked for me.
For more details, Please refer the following RFC's. These are really helpful for creating syntax for Custom message-id.
1) RFC 2822
2) RFC 5322
Hope this would also work for you.
来源:https://stackoverflow.com/questions/52013699/gmail-api-is-overwriting-the-custom-message-id-header-while-sending-emails