Browse Source

fixed sending from wrong user

master
Noah Pederson 6 years ago
parent
commit
a193f2467a
  1. 2
      mail/mail.go

2
mail/mail.go

@ -25,7 +25,7 @@ type SmtpMessage struct {
func SendEmail(s *SmtpMessage) {
m := gomail.NewMessage()
m.SetHeader("From", s.To)
m.SetHeader("From", s.From)
m.SetHeader("To", s.To)
m.SetHeader("Subject", s.Subject)
m.SetBody("text/html", s.Body)

Loading…
Cancel
Save