Skip to content

Instantly share code, notes, and snippets.

@riconegri
Created June 9, 2013 05:32
Show Gist options
  • Save riconegri/5737765 to your computer and use it in GitHub Desktop.
Save riconegri/5737765 to your computer and use it in GitHub Desktop.
Mailer config
res.mailer.send('mail/register', {
to: 'riconegri@gmail.com',
subject: 'Aviso de cadastro efetuado',
user: user
}, function (err) {
if (err) {
console.log(err);
res.send('There was an error sending the email');
return;
}
return res.json( {success: true} );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment