新的Gmail API中的RFC822邮件ID [英] RFC822 Message-Id in new Gmail API

查看:73
本文介绍了新的Gmail API中的RFC822邮件ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试使用gmail api发送电子邮件时,我们尝试手动设置RFC822消息ID. 我们已经进行了测试,但发现Gmail超越了我们的价值. 你知道这是否有原因吗?我们可以为此做些什么吗?

We are trying to set manually the RFC822 Message-Id when sending emails using the gmail api. We have tested but seen that Gmail overrides our value. Do you know if there is a reason for this? Can we do something for this?

推荐答案

是的,始终将邮件发送的Message-Id设置为外发Gmail邮件的正确格式,与Web界面的格式相同.

Yes the Message-Id is always set for mail sending to be the proper format for outgoing Gmail mail, the same format as the web interface.

为什么需要指定您自己的值而不是使用send期间返回的message.id值作为您自己的标识符或最终的Message-Id标头的原因是什么?

What exactly is reason for needing to specify your own value instead of using either the message.id value returned during send for your own identifier or the final Message-Id header?

这篇关于新的Gmail API中的RFC822邮件ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆