Commit d45d40e1 authored by Ivan Fedorov's avatar Ivan Fedorov Committed by Nicolas Giard

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

parent 89c0a83c
...@@ -51,6 +51,9 @@ module.exports = { ...@@ -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}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment