尝试使用gmail API回复现有的电子邮件 [英] trying to reply to an existing email with gmail API
问题描述
我试图用Gmail API回复现有的电子邮件:
由于我没有在现有邮件中回复标题的参考资料,In-Reply-To ,然后我使用Message-ID来填充我要发送的内容。
DB5PR03MB1206D3A24F124BDF43A5C6E683D60 @ DB5PR03MB1206 .eurprd03.prod.outlook.com是现有邮件的Message-ID标头。
我创建了以下RFC-802:
内容-Type:text / plain; charset =UTF-8
MIME-Version:1.0
Content-Transfer-Encoding:7bit
参考文献:< DB5PR03MB1206D3A24F124BDF43A5C6E683D60@DB5PR03MB1206.eurprd03.prod.outlook.com>
In-Reply-To:< DB5PR03MB1206D3A24F124BDF43A5C6E683D60@DB5PR03MB1206.eurprd03.prod.outlook.com>
主题:sdfasdf
至:xxx@gmail.com< aaa@gmail.com>,< xxxx@xxx.me>
from:aaa@gmail.com
aaaaaaaaa
然后我得到一个错误:
发生错误时未发送邮件。
我阅读了这篇文章,但这篇文章假设我始终拥有以下两个标题:
- 参考文献
- In-Reply-
删除引用并设置 In-Reply-To: Message-ID
Content-Type:text / plain; charset =UTF-8< br />
MIME-Version:1.0< br />
Content-Transfer-Encoding:7bit< br />
In-Reply-To:Message-ID< br />
主题:sdfasdf< br />
至:xxx@gmail.com< aaa@gmail.com>,< xxxx@xxx.me>< br />
来自:aaa@gmail.com< br />
aaaaaaaaa
I'm trying to reply to an existing email with Gmail API:
Since I don't have in the existing mail that i want to reply to the headers of References, In-Reply-To then i'm using the Message-ID instead to fill what I'm sending
DB5PR03MB1206D3A24F124BDF43A5C6E683D60@DB5PR03MB1206.eurprd03.prod.outlook.com is the Message-ID header of existing mail.
I've created the following RFC-802:
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
References: <DB5PR03MB1206D3A24F124BDF43A5C6E683D60@DB5PR03MB1206.eurprd03.prod.outlook.com>
In-Reply-To: <DB5PR03MB1206D3A24F124BDF43A5C6E683D60@DB5PR03MB1206.eurprd03.prod.outlook.com>
Subject: sdfasdf
to: "xxx@gmail.com" <aaa@gmail.com>,<xxxx@xxx.me>
from: aaa@gmail.com
aaaaaaaaa
then i get an error:
that an error occured the message wasn't sent.
I read this post but this post presumes that always i have the following two headers:
- References
- In-Reply-To
Remove References and set In-Reply-To : Message-ID
Content-Type: text/plain; charset="UTF-8" <br />
MIME-Version: 1.0<br />
Content-Transfer-Encoding: 7bit<br />
In-Reply-To: Message-ID<br />
Subject: sdfasdf<br />
to: "xxx@gmail.com" <aaa@gmail.com>,<xxxx@xxx.me><br />
from: aaa@gmail.com<br />
aaaaaaaaa
这篇关于尝试使用gmail API回复现有的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!