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

Co-authored-by: Nicolas Giard <github@ngpixel.com>
This commit is contained in:
Ivan Fedorov 2022-04-30 02:00:52 +03:00 committed by GitHub
parent ecb7d9d14b
commit 3407ac8829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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