Project
Newsletter SES
Send newsletters using AWS SES
45 commits 2 contributors Updated Jun 2018
Overview
Send newsletters using AWS SES
Install
shell
# to install as a dependency
npm install --save newsletter-ses
# to install the binary
npm install -g newsletter-sesThe config format
The configuration format:
js
const config = {
"ses": {
"accessKeyId": "7187fa1fcf3211e6",
"secretAccessKey": "7187fa1f-cf32-11e6-8edf+e3d56a8d0e0",
"region": "eu-west-1"
},
"lists": [
{
// The optional newsletter ID
"id": "newsletter-test-1",
// The newsletter name. used as fallback dubject
"name": "Newsletter Test List #1",
// The newsletter sender (from)
"sender": "[email protected]",
// The list for members
"members": [
"[email protected]",
"[email protected]"
],
// message to send
"message": {
"subject": "Hello, World",
"html": "The newsletter body in HTML",
"plain": "The newsletter body in Plain Text"
}
},
{
"id": "newsletter-test-2",
"name": "Newsletter Test List #2",
"sender": "[email protected]",
"members": [ "[email protected]" ],
"message": {
// Node the missing subject field:
// it will be generate from the tag in the HTML content
"html": `
Hello, World!
The newsletter body in HTML
`,
"plain": "The newsletter body in Plain Text"
}
},
{
"id": "newsletter-test-3",
"name": "Newsletter Test List #3",
"sender": "[email protected]",
"members": [ "[email protected]" ],
"message": {
"html": `
Hello, World!
The newsletter body in HTML
`
// Note the missing 'plain' field:
// it will be generate from the HTML content
}
},
{
"id": "newsletter-test-4",
"name": "Newsletter Test List #4",
"sender": "[email protected]",
"members": [ "[email protected]" ],
// You can pass your message directly as a string.
// The message.subject and message.plain will be generate
"message": `
Hello, World!
The newsletter body in HTML
`
}
]
}Technology
- JavaScript
Repository information
- Primary language
- JavaScript
- Created
- June 4, 2018
- Last activity
- June 26, 2018
Activity
Daily commits on the default branch, across the whole project history.
Mon
Wed
Fri
Contributors
- S
- S