Skip to content

Node.js based forum software built for the modern web

fix(#9252): pass site domain to nodemailer (#9254)

Peter Jaszkowiak5e5d37c38f3d
diff --git a/src/emailer.js b/src/emailer.js
index 5eb8c4c3b2..70332a9a55 100644
--- a/src/emailer.js
+++ b/src/emailer.js
@@ -118,6 +118,7 @@ Emailer.setupFallbackTransport = (config) => {
// Enable SMTP transport if enabled in ACP
if (parseInt(config['email:smtpTransport:enabled'], 10) === 1) {
const smtpOptions = {
+ name: getHostname(),
pool: config['email:smtpTransport:pool'],
};