support send email use TLS

This commit is contained in:
RockYang
2024-04-19 12:04:59 +08:00
parent 336a7d5b56
commit b584b4bfb6
2 changed files with 85 additions and 4 deletions

View File

@@ -30,6 +30,7 @@ type AppConfig struct {
}
type SmtpConfig struct {
UseTls bool // 是否使用 TLS 发送
Host string
Port int
AppName string // 应用名称