简体   繁体   English

Node.js:AWS SES sendRawEmail:邮件未被发送到BCC地址

[英]Node.js: AWS SES sendRawEmail: mails not getting sent to BCC addresses

I am sending a mail with attachments using mailcomposer and the sendRawEmail method of the AWS SDK. 我使用mailcomposer和AWS SDK的sendRawEmail方法发送带附件的邮件。 I am able to send the emails using the to and cc fields but when I add an address in bcc , the mail does not get delivered. 我可以使用tocc字段发送电子邮件,但是当我在bcc cc添加地址时,邮件无法发送。 There is no failure though. 但是没有失败。 Is there any extra configuration not mentioned in the docs that I might be missing ? 在我可能缺少的文档中是否有任何未提及的额外配置?

I found the answer in one of the issues of mailcomposer. 我在mailcomposer的一个问题中找到了答案。 You need to add one extra config in the mail options. 您需要在邮件选项中添加一个额外的配置。

var mail = mailcomposer(options);
mail.keepBcc = true;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM