small pixel drawing of a pufferfish clist

Add error handling for message submission
j3s j3s@c3f.net
Mon, 23 Dec 2019 13:46:05 -0600
commit

253e32e0f3ef55bc289ad0693e8f5ab66f0c0e7e

parent

d1b6a7dccc89eea30e2890c3714596b6171e2fa0

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M main.gomain.go

@@ -356,7 +356,10 @@ recipients = append(recipients, a.Address)

} auth := smtp.PlainAuth("", gConfig.SMTPUsername, gConfig.SMTPPassword, "mail.c3f.net") - smtp.SendMail("mail.c3f.net:587", auth, e.Sender.Address, recipients, e.ToBytes()) + err := smtp.SendMail("mail.c3f.net:587", auth, e.Sender.Address, recipients, e.ToBytes()) + if err != nil { + log.Printf("ERROR SENDING MAIL: %q\n", err) + } } // MAILING LIST LOGIC /////////////////////////////////////////////////////////