本文介绍了未在Google Apps脚本中设置为MailApp.sendEmail向自己发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MailApp.sendEmail({
to: " [email protected] , ",
subject: "New change for " + variable1+ " at " + variable2,
htmlBody: "Added: " + addedlist_new.toString() + "<br><br>" + 
"Removed: " + removedlist_old.toString() + "<br><br>" +
" https://docs.google.com/spreadsheets/d/someurlhere ",
})

当我有一封发给我自己以外的用户的电子邮件时,我发现自己最终在收件箱中收到了发送给他们的电子邮件。它显示已发送给我在收件人区域中输入的用户,但它在我的收件箱中。为什么将它放置在我的收件箱中而不是已发送邮件中?

When I have an email directed to a user other than myself, I find that I end up having the email that was sent to them, in my inbox. It shows it's sent to the user I entered in the "To" area, but it's in my inbox. Why does it place it in my Inbox instead of Sent Mail?

推荐答案

我遇到了这个问题,发现替换了 Mailapp.sendEmail Gmailapp.sendEmail 一起工作。

I had this problem and found that replacing Mailapp.sendEmail with Gmailapp.sendEmail worked.

这篇关于未在Google Apps脚本中设置为MailApp.sendEmail向自己发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 14:38