ses-mail
v1.0.1
Published
Ses Mail send
Downloads
103
Readme
SES Mail utility
A wrapper for ses mail send function of aws-sdk
Installation
npm i --save ses-mail
Usage
Refer SES Documentation
new SesMail(awsKey,awsSecret,awsRegion)
.to('[email protected]') //Sender
.cc('[email protected]')
.bcc('[email protected]')
.from('[email protected]')
.html('<p>Hello World</p>')
.text('Hello World')
.subject('Hello World Subject')
.configurationSetName(ConfigurationSetName) // refer documentation
.replyToAddresses(ReplyToAddresses) // refer documentation
.returnPath(ReturnPath) // refer documentation
.tags(Tags) // refer documentation
.send()
.then(function (data) {
console.log(data);
})
.catch(function (err) {
console.log(err);
});