more debug

This commit is contained in:
shoopea
2022-06-19 12:13:52 +08:00
parent 493715555d
commit db052048b6
2 changed files with 7 additions and 4 deletions

View File

@@ -20,6 +20,9 @@ type EmailConfig struct {
}
func SendMail(addr, from, subject, body string, to []string) error {
if *debugFlag {
log.Printf("SendMail : Start")
}
r := strings.NewReplacer("\r\n", "", "\r", "", "\n", "", "%0a", "", "%0d", "")
c, err := smtp.Dial(addr)