Pass ignoreTLS option to nodemailer

This commit is contained in:
David J. Weller-Fahy 2016-11-02 13:14:54 -04:00 committed by David J. Weller-Fahy
parent 559350eaa2
commit 5efee51ed8

View file

@ -25,7 +25,7 @@ else if Settings?.email?.parameters?.sendgridApiKey?
logger.log "using sendgrid for email"
nm_client = nodemailer.createTransport(sgTransport({auth:{api_key:Settings?.email?.parameters?.sendgridApiKey}}))
else if Settings?.email?.parameters?
smtp = _.pick(Settings?.email?.parameters, "host", "port", "secure", "auth")
smtp = _.pick(Settings?.email?.parameters, "host", "port", "secure", "auth", "ignoreTLS")
logger.log "using smtp for email"