Created
June 9, 2013 05:32
-
-
Save riconegri/5737765 to your computer and use it in GitHub Desktop.
Mailer config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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