Skip to content

Commit

Permalink
Fixes linnovate#739, @enkodellc solved it by upgrading nodemailer to …
Browse files Browse the repository at this point in the history
…1.2.2 and changing config in transport
  • Loading branch information
liorkesos committed Sep 9, 2014
1 parent 10709c6 commit 7b1d966
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/env/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
},
emailFrom: 'SENDER EMAIL ADDRESS', // sender address like ABC <[email protected]>
mailer: {
service: 'SERVICE_PROVIDER',
service: 'SERVICE_PROVIDER', // Gmail, SMTP
auth: {
user: 'EMAIL_ID',
pass: 'PASSWORD'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"mongoose": "^3.8.8",
"morgan": "^1.0.0",
"ms": "0.6.2",
"nodemailer": "~0.7.0",
"nodemailer": "1.2.2",
"passport": "^0.2.0",
"passport-facebook": "^1.0.3",
"passport-github": "^0.1.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/users/server/controllers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ exports.resetpassword = function(req, res, next) {
* Send reset password email
*/
function sendMail(mailOptions) {
var transport = nodemailer.createTransport('SMTP', config.mailer);
var transport = nodemailer.createTransport(config.mailer);
transport.sendMail(mailOptions, function(err, response) {
if (err) return err;
return response;
Expand Down

0 comments on commit 7b1d966

Please sign in to comment.