added textEncoding option for email

This commit is contained in:
Henry Oswald 2016-10-13 14:21:54 +01:00
parent d0f9a07197
commit bfeb7e082f

View file

@ -52,6 +52,8 @@ module.exports =
text: options.text
replyTo: options.replyTo || Settings.email.replyToAddress
socketTimeout: 30 * 1000
if settings.email.textEncoding?
opts.textEncoding = textEncoding
client.sendMail options, (err, res)->
if err?
logger.err err:err, "error sending message"