diff --git a/server/notification-providers/smtp.js b/server/notification-providers/smtp.js index 4914c0748..ecb583eb7 100644 --- a/server/notification-providers/smtp.js +++ b/server/notification-providers/smtp.js @@ -30,10 +30,15 @@ class SMTP extends NotificationProvider { // send mail with defined transport object await transporter.sendMail({ - from: `"Uptime Kuma" <${notification.smtpFrom}>`, + from: notification.smtpFrom, + cc: notification.smtpCC, + bcc: notification.smtpBCC, to: notification.smtpTo, subject: msg, text: bodyTextContent, + tls: { + rejectUnauthorized: notification.smtpIgnoreTLSError || false, + }, }); return "Sent Successfully."; diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index cd8ee8173..447b19266 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -37,7 +37,7 @@ - + @@ -65,49 +65,7 @@ - - - Hostname - - - - - Port - - - - - - - - Secure - - - - Generally, true for 465, false for other ports. - - - - - Username - - - - - Password - - - - - From Email - - - - - To Email - - - + @@ -437,8 +395,8 @@ - - + + @@ -456,6 +414,7 @@ +