我们为客户建立了 Google G Suite,在过去的几周里,我们发现 Google Apps 脚本没有按预期处理 MailApp.sendEmail()。它只发生在新的 G Suite 帐户中,并且现有帐户中的代码与预期的功能完全相同。
function testemail(){
MailApp.sendEmail("gordon@........", "TEST", "Hello world");
return;
}
我们使用的电子邮件地址是有效的电子邮件地址。
有任何想法吗?
尝试使用GmailApp.sendEmail() https://developers.google.com/apps-script/reference/gmail/gmail-app#sendEmail(String,String,String)
// The code below will send an email with the current date and time.
var now = new Date();
GmailApp.sendEmail("[email protected] /cdn-cgi/l/email-protection", "current time", "The time is: " + now.toString());
这是现在推荐的。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)