support send email use TLS

This commit is contained in:
RockYang
2024-04-19 12:04:59 +08:00
parent a15f431a7f
commit 6891bdde53
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 // 应用名称