Gmail API is overwriting the custom Message-ID header while sending emails

橙三吉。 提交于 2019-12-22 12:13:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!