more debug
This commit is contained in:
parent
f3abe27055
commit
a5b2d51cfb
6
email.go
6
email.go
@ -28,7 +28,7 @@ func SendMail(addr, from, subject, body string, to []string) error {
|
|||||||
c, err := smtp.Dial(addr)
|
c, err := smtp.Dial(addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if *debugFlag {
|
if *debugFlag {
|
||||||
log.Printf("SendMail : smtp.Dial (%s)", err)
|
log.Printf("SendMail : %s : smtp.Dial (%s)", addr, err)
|
||||||
}
|
}
|
||||||
return 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 err = c.Mail(r.Replace(from)); err != nil {
|
||||||
if *debugFlag {
|
if *debugFlag {
|
||||||
log.Printf("SendMail : client.Mail (%s)", err)
|
log.Printf("SendMail : %s : client.Mail (%s)", from, err)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ func SendMail(addr, from, subject, body string, to []string) error {
|
|||||||
to[i] = r.Replace(to[i])
|
to[i] = r.Replace(to[i])
|
||||||
if err = c.Rcpt(to[i]); err != nil {
|
if err = c.Rcpt(to[i]); err != nil {
|
||||||
if *debugFlag {
|
if *debugFlag {
|
||||||
log.Printf("SendMail : client.Rcpt (%s)", err)
|
log.Printf("SendMail : %s : client.Rcpt (%s)", to[i], err)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "db05204"
|
var githash = "f3abe27"
|
||||||
var buildstamp = "2022-06-19_04:18:29"
|
var buildstamp = "2022-06-19_04:20:21"
|
||||||
var commits = "45"
|
var commits = "46"
|
||||||
var version = "db05204-b45 - 2022-06-19_04:18:29"
|
var version = "f3abe27-b46 - 2022-06-19_04:20:21"
|
||||||
|
Loading…
Reference in New Issue
Block a user