feat: email adapter with SMTP TLS support

This commit is contained in:
2026-06-27 13:17:32 +08:00
parent 414c8c7cbf
commit 49b2384cf7
2 changed files with 124 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func NewSender(channelType string, smtpCfg *config.SMTPConfig) (ChannelSender, e
case "bark":
return &BarkSender{}, nil
case "email":
return nil, fmt.Errorf("email sender not yet implemented (see Task 10)")
return NewEmailSender(*smtpCfg), nil
default:
return nil, fmt.Errorf("unknown channel type: %s", channelType)
}