docs: email documentation example for SMTP setup (#5693)

The SMTP code example had a typo and was using the wrong environment variable to set the port for the email plugin
This commit is contained in:
Braian Pita
2024-12-02 22:22:38 -06:00
committed by GitHub
parent cf6a5df926
commit 6f453ea05a

View File

@@ -50,7 +50,7 @@ payload.init({
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS,
},
port: Number(process.env.SMTP_HOST),
port: Number(process.env.SMTP_PORT),
secure: Number(process.env.SMTP_PORT) === 465, // true for port 465, false (the default) for 587 and others
requireTLS: true,
},