2
0

🐛 Fix SMTP auth without creds

Closes #1556
This commit is contained in:
Baptiste Arnaud
2024-06-04 17:30:17 +02:00
parent edbc5a0cef
commit abc35a8695

View File

@ -49,10 +49,13 @@ if (env.NEXT_PUBLIC_SMTP_FROM && !env.SMTP_AUTH_DISABLED)
host: env.SMTP_HOST,
port: env.SMTP_PORT,
secure: env.SMTP_SECURE,
auth: {
auth:
env.SMTP_USERNAME || env.SMTP_PASSWORD
? {
user: env.SMTP_USERNAME,
pass: env.SMTP_PASSWORD,
},
}
: undefined,
},
from: env.NEXT_PUBLIC_SMTP_FROM,
sendVerificationRequest,