Skip to content

Commit

Permalink
Add test emails with Mailgun
Browse files Browse the repository at this point in the history
  • Loading branch information
leemunroe committed Apr 14, 2014
1 parent 9136642 commit 41d1144
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
15 changes: 14 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ module.exports = function(grunt) {
'build/transaction.html': ['build/*.html']
}
}
},

mailgun: {
mailer: {
options: {
key: 'key-3ax6xnjp29jd6fds4gc373sgvjxteol0',
sender: '[email protected]',
recipient: '[email protected]',
subject: 'This is a test email'
},
src: ['build/*.html']
}
}

});
Expand All @@ -44,8 +56,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('assemble');
grunt.loadNpmTasks('grunt-premailer');
grunt.loadNpmTasks('grunt-mailgun');

// 4. Where we tell Grunt what to do when we type "grunt" into the terminal.
grunt.registerTask('default', ['sass','assemble','premailer']);
grunt.registerTask('default', ['sass','assemble','premailer','mailgun']);

};
2 changes: 1 addition & 1 deletion _layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body bgcolor="#f6f6f6">

<!-- body -->
<table class="body-wrap">
<table class="body-wrap" bgcolor="#f6f6f6">
<tr>
<td></td>
<td class="container" bgcolor="#FFFFFF">
Expand Down
2 changes: 1 addition & 1 deletion build/transaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</style>


<table style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 20px; width: 100%"><tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0"><td style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0"></td>
<table bgcolor="#f6f6f6" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 20px; width: 100%"><tr style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0"><td style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0"></td>
<td bgcolor="#FFFFFF" style="border: 1px solid #f0f0f0; clear: both !important; display: block !important; font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0 auto; max-width: 600px !important; padding: 20px">


Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"grunt": "~0.4.4",
"grunt-contrib-sass": "^0.7.3",
"grunt-premailer": "^0.2.5",
"assemble": "^0.4.37"
"assemble": "^0.4.37",
"grunt-mailgun": "0.0.2"
}
}

0 comments on commit 41d1144

Please sign in to comment.