Added some printing while sending so you can tell it's not stuck
This commit is contained in:
parent
2be63ef237
commit
13389fa2db
2
main.go
2
main.go
|
@ -273,6 +273,7 @@ type PostmarkBatchResult struct {
|
|||
}
|
||||
|
||||
func sendMail(cfg Config, recipients []string, subject, contentHtml string) ([]PostmarkBatchResult, error) {
|
||||
fmt.Printf("Sending batch [%d recipients]...", len(recipients))
|
||||
from := cfg.FromAddress
|
||||
if cfg.FromName != "" {
|
||||
from = fmt.Sprintf("%s <%s>", cfg.FromName, cfg.FromAddress)
|
||||
|
@ -322,6 +323,7 @@ func sendMail(cfg Config, recipients []string, subject, contentHtml string) ([]P
|
|||
fmt.Printf("Batch sent successfully, but failed to parse response from postmark.\n")
|
||||
return nil, nil
|
||||
}
|
||||
fmt.Printf("Done.\n")
|
||||
return results, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue