https://github.com/nimeshkverma/aws-lambda-node-mailer
NodeJs code for Firing Email via AWS-Lambda and SES
https://github.com/nimeshkverma/aws-lambda-node-mailer
aws aws-lambda nodejs nodemailer nodemailer-smtp-transport ses smtp
Last synced: 27 days ago
JSON representation
NodeJs code for Firing Email via AWS-Lambda and SES
- Host: GitHub
- URL: https://github.com/nimeshkverma/aws-lambda-node-mailer
- Owner: nimeshkverma
- License: mit
- Created: 2016-05-17T10:51:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-17T17:48:19.000Z (over 9 years ago)
- Last Synced: 2025-04-08T14:45:50.358Z (6 months ago)
- Topics: aws, aws-lambda, nodejs, nodemailer, nodemailer-smtp-transport, ses, smtp
- Language: HTML
- Size: 93.8 KB
- Stars: 25
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-lambda-node-mailer

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.
## Prerequisites
- A working AWS Lambda account
- `node` , amazon supports lambdas in node version 4.3
- [nodemailer](https://github.com/nodemailer/nodemailer)
- [nodemailer-smtp-transport](https://github.com/nodemailer/nodemailer-smtp-transport) or [nodemailer-smtp-transport](https://github.com/andris9/nodemailer-ses-transporte)
- [ejs](https://www.npmjs.com/package/ejs)
- [jsonschema](https://www.npmjs.com/package/jsonschema)## Usage
1. Clone the repository move into any of the two directory `smtp_emailer` or `ses_emailer` according to your need, then execute below:
`npm install`
2. Provide the neccesary credentials in `config.js`
3. 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 the `config.js`
4. 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 the `config.js`
5. Once above is done, provide correct values in place of dummy values in `test.js`, then execute below:
`node test.js`
## How to Contribute
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull RequestThe scripts in this