【问题标题】:Google App Engine Mail API doesn't include headers when sending outgoing message发送传出消息时,Google App Engine Mail API 不包含标头
【发布时间】:2018-12-18 15:59:50
【问题描述】:

我正在尝试通过 GAE Mail API 发送带有标题的电子邮件。我设置了一个标题:

message.setHeader("X-Priority", "1");

但 AppEngine 会忽略它。当我收到一封电子邮件时,它不包含优先级标头。

有人知道如何设置外发电子邮件的优先级标头吗?

【问题讨论】:

标签: google-app-engine google-cloud-platform jakarta-mail


【解决方案1】:

The Google App Engine Mail API only supports the specific headers listed in the documentation,目前:

  • 回复中
  • 列表 ID
  • 列表-取消订阅
  • 代表
  • 参考文献
  • 重新发送日期
  • 发件人
  • 重新发送到

【讨论】:

  • 此外,在 JavaMail 1.5.3 中测试 MailHandler 时,添加 auto-submitted 标头会导致 GAE 根本无法发送电子邮件。
猜你喜欢
  • 2013-06-04
  • 2012-06-28
  • 1970-01-01
  • 1970-01-01
  • 2020-04-27
  • 2012-05-15
  • 1970-01-01
  • 1970-01-01
  • 2016-07-01
相关资源
最近更新 更多