【文件属性】:
文件名称:lambda-mail-sender:使用AWS SNS和SQS的简单lambda函数
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-12 14:26:07
lambda sqs mailer sns ses
Lambda-Mail-Senderλ
入门
请参阅.env.example并创建一个名为“ .env”的新文件,其中应包含环境变量
安装依赖项
使用无服务器或AWS SDK部署它
Create a SQS Queue - send a message to this queue with the following data:
{
"template": "template-name",
"mailTo": "email@email.com",
"subject": "new email",
"context": "params"
}
Test it using SNS - publish a new message to the topic that triggers the lambda function
For more: check logs on AW
【文件预览】:
lambda-mail-sender-master
----.env.example(276B)
----helper.js(2KB)
----serverless.yml(672B)
----template-email()
--------reset-password.html(348B)
--------reset-password.json(491B)
----handler.js(2KB)
----.gitignore(116B)
----readme.md(688B)
----package.json(377B)