Turned off sending mail on the dev environment.

This commit is contained in:
Scott Erickson 2014-01-03 14:28:26 -08:00
parent 594b54a40e
commit ff3e2ba37f
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ module.exports.setupRoutes = (app) ->
user.set('passwordReset', Math.random().toString(36).slice(2,7).toUpperCase())
user.save (err) =>
return returnServerError(res) if err
if config.isProduction or true
if config.isProduction
transport = createSMTPTransport()
options = createMailOptions req.body.email, user.get('passwordReset')
transport.sendMail options, (error, response) ->

View file

@ -5,7 +5,7 @@ nodemailer = require 'nodemailer'
module.exports.setupRoutes = (app) ->
app.post '/contact', (req, res) ->
winston.info "Sending mail from #{req.body.email} saying #{req.body.message}"
if config.isProduction or true
if config.isProduction
transport = createSMTPTransport()
options = createMailOptions req.body.email, req.body.message, req.user
transport.sendMail options, (error, response) ->