AWS-Lambda-Node-Mailer contains NodeJs scripts to send Emails via AWS Lambda services using Nodemailer package. The scripts are provided for both SMTP and SES.
- A working AWS Lambda account
node
, amazon supports lambdas in node version 4.3- nodemailer
- nodemailer-smtp-transport or nodemailer-smtp-transport
- ejs
- jsonschema
-
Clone the repository move into any of the two directory
smtp_emailer
orses_emailer
according to your need, then execute below:npm install
-
Provide the neccesary credentials in
config.js
-
Provide the template for the email, for eg presently the template being used is
template_type_1.ejs
, don't forget to provide the path of the template in theconfig.js
-
Provide the schema for the payload, for eg presently the payload being used is
template_type_1.json
, don't forget to provide the path of the template in theconfig.js
-
Once above is done, provide correct values in place of dummy values in
test.js
, then execute below:node test.js
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull RequestThe scripts in this