mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-21 17:36:38 +00:00
Fix SMTP Notifications
This commit is contained in:
parent
408b80badf
commit
7ad4390db7
@ -540,7 +540,7 @@ func sendNotifications(message string) {
|
||||
|
||||
for _, n := range notifs {
|
||||
switch n.Type {
|
||||
case "email":
|
||||
case "smtp":
|
||||
if n.SMTPHost.Valid && n.SMTPTo.Valid {
|
||||
sendEmail(n, message)
|
||||
}
|
||||
@ -761,7 +761,7 @@ func checkAndSendTestNotifications(db *sql.DB) {
|
||||
|
||||
func sendSpecificNotification(n Notification, message string) {
|
||||
switch n.Type {
|
||||
case "email":
|
||||
case "smtp":
|
||||
if n.SMTPHost.Valid && n.SMTPTo.Valid {
|
||||
sendEmail(n, message)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user