【发布时间】:2020-07-03 14:36:48
【问题描述】:
我正在尝试发送包含多个 PDF 附件的电子邮件。如何在 AWS SES nodejs 中做到这一点?
到目前为止,这是我的代码:
From: "test" <no-reply@email.com>\n
To: test@email.com\n
Subject: Test Subject\n
MIME-Version: 1.0\n
Content-Type: multipart/mixed; boundary=\"NextPart\"\n\n
--NextPart\n
Content-Type: text/html; charset=us-ascii\n\n
This is the body of the email.\n\n
--NextPart\n
Content-Type: application/octet-stream;\n
Content-Transfer-Encoding: base64\n
Content-Disposition: attachment; filename=\"attachment.pdf\"\n\n
BASE64 OF PDF HERE
--NextPart
到目前为止,上述代码正在运行,但是我想发送多个附件。谢谢。
【问题讨论】:
-
您在这方面取得了一些进展吗?我有同样的问题
标签: node.js amazon-web-services amazon-ses