feat: add X-Mailer header to outgoing emails (#5238)

Co-authored-by: Nicolas Giard <github@ngpixel.com>
pull/5698/head
Ivan Fedorov 3 years ago committed by Nicolas Giard
parent 89c0a83cd5
commit d45d40e12e

@ -51,6 +51,9 @@ module.exports = {
}
await this.loadTemplate(opts.template)
return this.transport.sendMail({
headers: {
'x-mailer': 'Wiki.js'
},
from: `"${WIKI.config.mail.senderName}" <${WIKI.config.mail.senderEmail}>`,
to: opts.to,
subject: `${opts.subject} - ${WIKI.config.title}`,

Loading…
Cancel
Save