Swapped Gmail for Sendgrid on Forgot Password Send Email workflow

This commit is contained in:
Sahat Yalkabov
2014-02-17 18:54:46 -05:00
parent 1faf279877
commit de1ee38f8e

View File

@@ -154,14 +154,12 @@ exports.postForgot = function(req, res) {
workflow.on('sendEmail', function(token, user) {
// Create a reusable nodemailer transport method (opens a pool of SMTP connections)
var smtpTransport = nodemailer.createTransport("SMTP",{
service: "Gmail",
var smtpTransport = nodemailer.createTransport('SMTP', {
service: 'SendGrid',
auth: {
user: secrets.gmail.user,
pass: secrets.gmail.password
user: secrets.sendgrid.user,
pass: secrets.sendgrid.password
}
// See nodemailer docs for other transports
// https://github.com/andris9/Nodemailer
});
console.log('User: ' + secrets.gmail.user);