refactor: Update SendNotification function to handle old and new settings triggers

This commit is contained in:
Marvin Zhang
2024-07-15 17:34:04 +08:00
parent e672329370
commit b7cafb4623
9 changed files with 131 additions and 241 deletions

View File

@@ -28,7 +28,7 @@ func SendMail(m *models.NotificationSettingMail, to, cc, title, content string)
// config
port, _ := strconv.Atoi(m.Port)
password := m.Password // test password: ALWVDPRHBEXOENXD
password := m.Password
SMTPUser := m.User
smtpConfig := smtpAuthentication{
Server: m.Server,