Update email.sender.service.ts
This commit is contained in:
@@ -46,10 +46,10 @@ class EmailSenderService implements INotificationSender {
|
|||||||
throw new Error(`Invalid SMTP port configured: ${finalSmtpPort}`);
|
throw new Error(`Invalid SMTP port configured: ${finalSmtpPort}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove explicit type annotation to let TypeScript infer the type
|
||||||
const transporterOptions: nodemailer.TransportOptions = {
|
const transporterOptions = {
|
||||||
host: finalSmtpHost,
|
host: finalSmtpHost,
|
||||||
port: finalSmtpPort,
|
port: finalSmtpPort,
|
||||||
secure: finalSmtpSecure, // true for 465, false for other ports
|
secure: finalSmtpSecure, // true for 465, false for other ports
|
||||||
auth: (finalSmtpUser && finalSmtpPass) ? {
|
auth: (finalSmtpUser && finalSmtpPass) ? {
|
||||||
user: finalSmtpUser,
|
user: finalSmtpUser,
|
||||||
|
|||||||
Reference in New Issue
Block a user