diff --git a/src/modules/sendMail.ts b/src/modules/sendMail.ts index 3c7e1c9..e4389fa 100644 --- a/src/modules/sendMail.ts +++ b/src/modules/sendMail.ts @@ -20,8 +20,8 @@ export const sendMail = async(subject: string, body: string): Promise => { user: "noreply@nhcarrigan.com", }, host: "mail.nhcarrigan.com", - port: 465, - secure: true, + port: 587, // UPDATED: Standard port for STARTTLS + secure: false, // UPDATED: false means "Connect then upgrade via STARTTLS" }; const defaults: SMTPTransport["options"] = { from: "noreply@nhcarrigan.com", @@ -33,4 +33,4 @@ export const sendMail = async(subject: string, body: string): Promise => { subject: subject, text: body, }); -}; +}; \ No newline at end of file