没有报告550收件人被MailApp拒绝 [英] No reports a 550 recipient rejected from MailApp

查看:104
本文介绍了没有报告550收件人被MailApp拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用MailApp.sendEmail()或GmailApp.sendEmail()将邮件从App脚本发送到不存在的地址时,我没有收到有关该错误的电子邮件.我希望发送给该帐户的电子邮件会发送报告问题:550位收件人被拒绝.

When sending mail using MailApp.sendEmail() or GmailApp.sendEmail() from App Script to a non-existent address I do not get an email informing about the error. I would expect an email to the account that sends reporting problem: 550 recipient rejected.

function testNonExistentAddress() {
  var _recipient = 'nonexistentaddress@myexample.net';
  var _subject = 'TEST FROM MAILAPP APPSCRIPT';
  var _body = 'TEST';
  MailApp.sendEmail(_recipient, _subject, _body);
}

推荐答案

问题是它不是从您那里发送的.它只是在Google服务器上启动它.您还将注意到,它没有出现在您的已发送文件夹中,并且您需要声明电子邮件的来源.我还会在我的应用发送的电子邮件中使用密件抄送,以便在我的邮件帐户中有一个记录.

The problem is that it is not sending it from you. It's simply bouncing it off a Google server. You will also notice that it doesn't appear in your sent folder, and that you need to declare who the email is coming from. I also bcc myself on the emails that my apps send so that I have a record in my mail account.

我相信什么也没做.除了检查问题跟踪器/功能请求.或致电第三方系统以确保电子邮件地址是真实的.

Nothing to be done, I believe. Other than checking the issue tracker / feature request. Or calling a third party system to ensure that the email address is real.

这篇关于没有报告550收件人被MailApp拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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