⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(email): Add option to enable RequireTLS (#630)
Sávio Henriquec99f6bc5bc67
diff --git a/.env.sample b/.env.sampleindex 2bc156a0d..f17a843e5 100644--- a/.env.sample+++ b/.env.sample@@ -24,4 +24,5 @@ SMTP_PORT=SMTP_SECURE=SMTP_USER=SMTP_PASSWORD=-SMTP_FROM=\ No newline at end of file+SMTP_FROM=+SMTP_REQUIRE_TLS=diff --git a/apps/docs/content/docs/installation/environment-variables.mdx b/apps/docs/content/docs/installation/environment-variables.mdxindex 41998af2f..301e074d7 100644--- a/apps/docs/content/docs/installation/environment-variables.mdx+++ b/apps/docs/content/docs/installation/environment-variables.mdx@@ -75,6 +75,7 @@ Name | Description || `SMTP_USER` | The SMTP user.| `SMTP_PASSWORD` | The SMTP password.| `SMTP_FROM` | The SMTP from address.+| `SMTP_REQUIRE_TLS` | Whether to explicitly force to use TLS. [See more on](https://nodemailer.com/smtp#tls-options).## Key pointsdiff --git a/packages/email/src/send-email.tsx b/packages/email/src/send-email.tsxindex b57bd4466..2af9d7572 100644--- a/packages/email/src/send-email.tsx+++ b/packages/email/src/send-email.tsx@@ -17,6 +17,7 @@ const transporter = nodemailer.createTransport({user: process.env.SMTP_USER,pass: process.env.SMTP_PASSWORD,},+ requireTLS: process.env.SMTP_REQUIRE_TLS === "true",});export const sendMagicLinkEmail = async (