generated from nhcarrigan/template
fix: use different mail port
Hetzner likely blocks the default SMTP port.
This commit is contained in:
@@ -20,8 +20,8 @@ export const sendMail = async(subject: string, body: string): Promise<void> => {
|
|||||||
user: "noreply@nhcarrigan.com",
|
user: "noreply@nhcarrigan.com",
|
||||||
},
|
},
|
||||||
host: "mail.nhcarrigan.com",
|
host: "mail.nhcarrigan.com",
|
||||||
port: 465,
|
port: 587, // UPDATED: Standard port for STARTTLS
|
||||||
secure: true,
|
secure: false, // UPDATED: false means "Connect then upgrade via STARTTLS"
|
||||||
};
|
};
|
||||||
const defaults: SMTPTransport["options"] = {
|
const defaults: SMTPTransport["options"] = {
|
||||||
from: "noreply@nhcarrigan.com",
|
from: "noreply@nhcarrigan.com",
|
||||||
|
|||||||
Reference in New Issue
Block a user