我正在尝试向多个收件人发送批量电子邮件,但有一个问题是我必须发送邮件而不是我当前的用户 ID,我必须更改当前用户 ID 并给出另一个如何实现此目的 `
var recipientEmails = [
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]'
];
email.sendBulk({
author: -5, // here I want to put my custom email which [email protected]
recipients: recipientEmails,
subject: 'Sales order ',
body: 'your sales order is created ',
replyTo: '[email protected]'
});
`
author: -5, // 在这里我想放置我的自定义电子邮件 [电子邮件受保护]
作者应该是员工记录的内部ID,并且不允许使用电子邮件地址本身。
您可以使用您的电子邮件[电子邮件受保护]创建员工记录并使用该员工记录的内部 ID 作为作者。
(或)
如果您不想在系统中存储该员工记录,请在发送电子邮件之前创建临时员工记录并在发送电子邮件后删除该员工记录。 https://suiteanswers.custhelp.com/app/answers/detail/a_id/22315/loc/en_US