此脚本中调用 sendEmail 的所有内容都工作正常,但没有接受replyTo。已打印出我想要使用的字符串,一切都正确,但收到的电子邮件没有正确的回复。给什么?
GmailApp.sendEmail(row[RECIPIENT_COL], msgObj.subject, msgObj.text, {
htmlBody: msgObj.html,
// bcc: '[email protected]',
// cc: '[email protected]',
from: '[email protected]',
name: 'RGNA Steering Committee',
replyTo: new_reply_to,
// noReply: true, // if the email should be sent from a generic no-reply email address (not available to gmail.com users)
attachments: emailTemplate.attachments
});
new_reply_to string value is correct but is not in the email sent
在 GmailApp.sendEmail 中使用replyTo 不会覆盖帐户设置中建立的回复。
一旦我删除它,脚本就可以正常工作。