【问题标题】:GmailApp.sendEmail and MailApp.sendEmail cannot sent to recipients with +GmailApp.sendEmail 和 MailApp.sendEmail 无法发送给带有 + 的收件人
【发布时间】:2016-07-07 07:51:19
【问题描述】:

我注意到如果收件人电子邮件包含“+”号,GmailApp.sendEmail 和 MailApp.sendEmail 都无法发送电子邮件。

Gmail supports dynamic alias by using '+' in emails like this: username+anything@gmail.com,但是这两个类都不能向这些地址发送邮件。

例如,这是有效的:

GmailApp.sendEmail('username@gmail.com', 'subject', 'body');
MailApp.sendEmail('username@gmail.com', 'subject', 'body');

...虽然不是这样:

GmailApp.sendEmail('username+anything@gmail.com', 'subject', 'body');
MailApp.sendEmail('username+anything@gmail.com', 'subject', 'body');

有人遇到过这个问题吗?

【问题讨论】:

    标签: javascript email google-apps-script


    【解决方案1】:

    这不是一个真正的问题。我试图在电子邮件中使用 + 发送给自己,但这些没有出现在收件箱中。这些只出现在造成这种混乱的发送文件夹中。

    【讨论】:

      猜你喜欢
      • 2011-06-20
      • 2015-11-23
      • 1970-01-01
      • 1970-01-01
      • 2016-08-21
      • 1970-01-01
      • 2023-03-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多