从Google Script发送电子邮件时邮件被阻止 [英] Message blocked when sending email from Google Script

查看:168
本文介绍了从Google Script发送电子邮件时邮件被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个调查表,人们提交工作时间,然后将其回复通过电子邮件发送给我,然后再发送给CC的另外两个人。该脚本已由我授权发送电子邮件,并且已经运行了很长一段时间,直到几天前,现在我收到了来自所有三封电子邮件的答复,称消息已被阻止。知道为什么这些被阻止吗?

I have a survey form that people submit the hours they work and it sends their response in an email to me and then CC's two other people. The script was authorized by me to send the emails and has worked fine for a long time until a couple days ago when now I am getting a reply back from all three emails saying Message blocked. Any idea why these are being blocked?

MailApp.sendEmail("myemail@gmail.com",emailSubject,"", {htmlBody: body, cc: "anotheremail@gmail.com, thirdemail@gmail.com"});

如果我仅向自己发送电子邮件,则可以正常工作。

If I only send the email to myself then it works perfectly fine. If I include even one CC email address I get the block.

Reporting-MTA: dns; googlemail.com
Arrival-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)
X-Original-Message-ID: <000000000000eb73c1057a773c96@google.com>

Final-Recipient: rfc822; myemail@gmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp; Message rejected.  See https://support.google.com/mail/answer/69585 for more information.
Last-Attempt-Date: Mon, 12 Nov 2018 04:57:05 -0800 (PST)


推荐答案

使用 GmailApp.sendEmail(emailAddress,主题,消息)解决此问题。

这似乎是所有新GSuite帐户的问题,如下所述:

This seems to be an issue with all new GSuite accounts as discussed here: MailApp.sendEmail() in Google Apps Script not sending email

尤其令人沮丧的是,Google没有应对超过4个月的巨大缺陷!

It is particularly frustrating that Google has no response to this huge shortcoming for over 4 months!

这篇关于从Google Script发送电子邮件时邮件被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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