Browse Source
feat: add X-Mailer header to outgoing emails (#5238)
Co-authored-by: Nicolas Giard <github@ngpixel.com>
pull/4482/merge
Ivan Fedorov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
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}`, |
|
|
|