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",
|
||||
},
|
||||
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<void> => {
|
||||
subject: subject,
|
||||
text: body,
|
||||
});
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user