Exit with error code 1 if a recipient address is incorrect (#16)

This commit is contained in:
Michael de Wit 2017-07-12 15:48:45 +02:00
parent ca0f94098b
commit f8088a6429

View file

@ -197,6 +197,7 @@ func (p Plugin) Exec() error {
if err := gomail.Send(closer, message); err != nil {
log.Errorf("Could not send email to %q: %v", recipient, err)
return err
}
message.Reset()
}