Skip to content

Instantly share code, notes, and snippets.

@bobiko
Created August 29, 2014 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobiko/f9c3535582622f8bf976 to your computer and use it in GitHub Desktop.
Save bobiko/f9c3535582622f8bf976 to your computer and use it in GitHub Desktop.
nodemailer: {
options: {
transport: grunt.file.readJSON('config/nodemailer.json'),
recipients: grunt.file.readJSON('config/recipients.json'),
message: {
from: '<John Doe> john.doe@gmail.com'
}
},
dist: {
src: ['<%= paths.dist %>/<%= paths.email %>'],
attachments:
{
filename: 'image.gif',
path : '/home/vagrant/mailer/image.gif',
contentType: 'multipart/mixed'
},
alternatives:
{
filename: 'image.gif',
path : '/home/vagrant/mailer/image.gif',
contentType: 'multipart/mixed'
}
},
dev: {
src: ['<%= paths.tmp %>/<%= paths.email %>'],
attachments:
{
filename: 'image.gif',
path : '/home/vagrant/mailer/image.gif',
contentType: 'multipart/mixed'
},
alternatives:
{
filename: 'image.gif',
path : '/home/vagrant/mailer/image.gif',
contentType: 'multipart/mixed'
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment