sendmail 的replyTo 参数中无法识别字符串变量

问题描述 投票:0回答:1

此脚本中调用 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
sendmail
1个回答
0
投票

在 GmailApp.sendEmail 中使用replyTo 不会覆盖帐户设置中建立的回复。

一旦我删除它,脚本就可以正常工作。

© www.soinside.com 2019 - 2024. All rights reserved.