small pixel drawing of a pufferfish clist

Make config generic
j3s j3s@c3f.net
Thu, 02 Jan 2020 21:05:08 -0600
commit

07c19aea6d4e0e082f31a772d5faebc3aca149af

parent

979268cbfc3566e1a8c373c008cce3ff793456fa

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

jump to
M main.gomain.go

@@ -353,8 +353,8 @@ for _, a := range e.Bcc {

recipients = append(recipients, a.Address) } - auth := smtp.PlainAuth("", gConfig.SMTPUsername, gConfig.SMTPPassword, "mail.c3f.net") - err := smtp.SendMail("mail.c3f.net:587", auth, e.Header.Get("Sender"), recipients, e.ToBytes()) + auth := smtp.PlainAuth("", gConfig.SMTPUsername, gConfig.SMTPPassword, gConfig.SMTPHostname) + err := smtp.SendMail(gConfig.SMTPHostname + ":" + gConfig.SMTPPort, auth, e.Header.Get("Sender"), recipients, e.ToBytes()) if err != nil { log.Printf("ERROR_SENDING_MAIL: Error=%q\n", err.Error()) }