通过AWS ESS在Node.js中发送带有附件的邮件 [英] Sending mail via aws ses with attachment in node.js

查看:330
本文介绍了通过AWS ESS在Node.js中发送带有附件的邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人举过一些例子,说明如何使用aws ses在node.js中发送带有附件的电子邮件. 那对我真的很有帮助.

Does anyone have some example of how to send email with attachment in node.js with aws ses. That would be really helpful for me.

谢谢!

推荐答案

有一个名为ˇNodemailerˇ的出色的邮件库,它也支持Amazon SES.这是一个如何发送带有附件 https:/的电子邮件的小示例./github.com/andris9/Nodemailer/blob/master/examples/example_ses.js .

There is a great mailing library called ˇNodemailerˇ it also has support for the Amazon SES. Here is a small example of how to send e-mail with attachment https://github.com/andris9/Nodemailer/blob/master/examples/example_ses.js.

但是请注意,当您的电子邮件发送失败时,亚马逊会出现奇怪的错误.

But be aware that Amazon has strange errors when your email sending fails.

这篇关于通过AWS ESS在Node.js中发送带有附件的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆