Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

set SmtpHost.Sendgrid secure=true

Maidul Islamc05ebbb86410
diff --git a/backend-pg/src/services/smtp/smtp-service.ts b/backend-pg/src/services/smtp/smtp-service.ts
index ae75842dbd..37c5a98a94 100644
--- a/backend-pg/src/services/smtp/smtp-service.ts
+++ b/backend-pg/src/services/smtp/smtp-service.ts
@@ -42,7 +42,7 @@ export const getTlsOption = (host?: SmtpHost | string, secure?: boolean) => {
if (!host) return { secure: true };
if (host === SmtpHost.Sendgrid) {
- return { requireTLS: true };
+ return { secure: true, port: 465}; // more details here https://nodemailer.com/smtp/
}
if (host.includes("amazonaws.com")) {
return { tls: { ciphers: "TLSv1.2" } };