1.0.9 • Published 7 years ago

ses-email-sender v1.0.9

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

ses-email-sender

Send emails using Amazons SES services via NodeJS + Nodemailer

##Installation npm install ses-email-sender

##Usage

//Initialize the library (only required once)
var email = require('ses-email-sender')({
	AWSAccessKeyID: "<YOUR_AWS_KEY_ID>",
	AWSSecretKey: "<YOUR_AWS_SECRET_KEY>",
	ServiceUrl: "<YOUR_AWS_SERVICE_URL>", (optional, defaults to 'https://email.us-west-2.amazonaws.com')
	port: "<SES_PORT>" (optional, defaults to 587)
})

//How to send an email
//This is actually just feeding this data into a Nodemailer object, so anything that can be done there, can be done here. see:  https://github.com/andris9/Nodemailer
email({
	from: "Jane Doe <Jane.Doe@email.com>", // sender address
	to: "John Doe <John.Dow@email.com>", // list of receivers, can be semicolon seperated
	subject: "Lets eat at Maccas tonight", // Subject line
	attachments: [], //optional, see: https://github.com/andris9/Nodemailer#attachments
	html: "Hey, wanna grab some cheeseburgz from MacDonalds tonight?" // HTML message to send
})
1.0.9

7 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

9 years ago