intents-ses
v0.1.1
Published
AWS Simple Email Service integration with Intents.
Downloads
2
Readme
Amazon Simple Email Service integration for Intents
This project is intented to use with Intents module.
Example as part of Intents
Details about Intents are at Intents project page
npm install intents
in Intents configuration at ./config/default.coffee:
ses = require 'intents-ses'
@mail = ses
key: 'my-AWS-key'
secret: 'my-AWS-secret'
amazon: 'amazon end-point uri' # defaults to amazon east
in app code:
var mail = require('intents').mail;
mail.send({
recipient: '[email protected]',
sender: '[email protected]',
subject: 'Some subject',
html: 'Some html',
text: 'Alt text'}, function(error) {
if(error) {
console.error(error);
}
});
Example as standalone module
var ses = require('intents-ses');
var mail = ses({key: 'my-AWS-key', secret: 'my-AWS-secret'});
mail.send({
recipient: '[email protected]',
sender: '[email protected]',
subject: 'Some subject',
html: 'Some html',
text: 'Alt text'}, function(error) {
if(error) {
console.error(error);
}
});