more debug

This commit is contained in:
shoopea 2022-06-19 12:20:27 +08:00
parent f3abe27055
commit a5b2d51cfb
2 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,7 @@ func SendMail(addr, from, subject, body string, to []string) error {
c, err := smtp.Dial(addr)
if err != nil {
if *debugFlag {
log.Printf("SendMail : smtp.Dial (%s)", err)
log.Printf("SendMail : %s : smtp.Dial (%s)", addr, err)
}
return err
}
@ -37,7 +37,7 @@ func SendMail(addr, from, subject, body string, to []string) error {
if err = c.Mail(r.Replace(from)); err != nil {
if *debugFlag {
log.Printf("SendMail : client.Mail (%s)", err)
log.Printf("SendMail : %s : client.Mail (%s)", from, err)
}
return err
}
@ -46,7 +46,7 @@ func SendMail(addr, from, subject, body string, to []string) error {
to[i] = r.Replace(to[i])
if err = c.Rcpt(to[i]); err != nil {
if *debugFlag {
log.Printf("SendMail : client.Rcpt (%s)", err)
log.Printf("SendMail : %s : client.Rcpt (%s)", to[i], err)
}
return err
}

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "db05204"
var buildstamp = "2022-06-19_04:18:29"
var commits = "45"
var version = "db05204-b45 - 2022-06-19_04:18:29"
var githash = "f3abe27"
var buildstamp = "2022-06-19_04:20:21"
var commits = "46"
var version = "f3abe27-b46 - 2022-06-19_04:20:21"