Skip to content
Snippets Groups Projects
Commit 0e250ce1 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Feature: better default from addresses

parent 8091034b
No related branches found
No related tags found
1 merge request!8Send emails using Amazon SES instead of crappy Mandrill
Loading
Loading
@@ -3,8 +3,7 @@
"accessKeyId": "AKIAJYV4XCWUB5ZQ2TKQ",
"secretAccessKey": "",
"defaultFromEmailName": "Gitter",
"defaultFromEmailAddress": "support@gitter.im",
"overrideTo": "andrew@gitter.im"
"defaultFromEmailAddress": "support@gitter.im"
},
"mailer": {
"templateDirectory": "templates/"
Loading
Loading
Loading
Loading
@@ -6,7 +6,11 @@ var mailer = env.mailer;
 
return mailer({
templateName: 'text',
subject: 'Hi There'
subject: 'Hi There',
to: 'mike@gitter.im',
data: {
FIRST_NAME: 'Mike'
}
})
.then(function(result) {
console.log(result);
Loading
Loading
HELLO
<p>HELLO {{ FIRST_NAME }}</p>
<p><b>Moenie a hond wies nie</b></p>
HELLO
HELLO {{ FIRST_NAME }}
Moenie a hond wies nie.
{
"amazonses": {
"accessKeyId": "AKIAJYV4XCWUB5ZQ2TKQ",
"secretAccessKey": "",
"defaultFromEmail": "support@gitter.im",
"overrideTo": "andrew@gitter.im"
},
"mailer": {
"templateDirectory": "templates/"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment