set SmtpHost.Sendgrid secure=true

This commit is contained in:
Maidul Islam
2024-01-25 02:27:37 -05:00
committed by Akhil Mohan
parent 372f2be2f3
commit c05ebbb864

View File

@@ -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" } };