Skip to content

Commit

Permalink
feat: add X-Mailer header to outgoing emails (#5238)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Giard <github@ngpixel.com>
  • Loading branch information
TitaniumHocker and NGPixel authored Apr 29, 2022
1 parent ecb7d9d commit 3407ac8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/core/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 3407ac8

Please sign in to comment.