From 6f453ea05a06c215e0fc608aa283f0b149c91619 Mon Sep 17 00:00:00 2001 From: Braian Pita <54162188+BraianPita@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:22:38 -0600 Subject: [PATCH] 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 --- docs/email/overview.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/email/overview.mdx b/docs/email/overview.mdx index 82f1c8d920..fcc6bd7a42 100644 --- a/docs/email/overview.mdx +++ b/docs/email/overview.mdx @@ -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, },