strapi-provider-email-smtp
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -58,3 +58,3 @@ "use strict"; | ||
init: (config) => { | ||
init: (config, settings) => { | ||
let transporter = nodemailer.createTransport({ | ||
@@ -80,4 +80,4 @@ host: config.host, | ||
options = _.isObject(options) ? options : {}; | ||
options.from = options.from || config.username; | ||
options.replyTo = options.replyTo || config.username; | ||
options.from = options.from || settings.defaultFrom || config.username; | ||
options.replyTo = options.replyTo || settings.defaultReplyTo || config.username; | ||
options.text = options.text || options.html; | ||
@@ -84,0 +84,0 @@ options.html = options.html || options.text; |
{ | ||
"name": "strapi-provider-email-smtp", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Strapi SMTP email provider with nodemailer", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
5149