From 3407ac882946eb008afcb47e5ece40caf5ccb1fc Mon Sep 17 00:00:00 2001 From: Ivan Fedorov Date: Sat, 30 Apr 2022 02:00:52 +0300 Subject: [PATCH] feat: add X-Mailer header to outgoing emails (#5238) Co-authored-by: Nicolas Giard --- server/core/mail.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/core/mail.js b/server/core/mail.js index 0089c3bc..9dad973a 100644 --- a/server/core/mail.js +++ b/server/core/mail.js @@ -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}`,