Merge pull request #96 from authorizerdev/fix/smtp-send-mail
fix: send mail from param
This commit is contained in:
commit
2137d8ef5d
|
@ -37,9 +37,8 @@ func (sender Sender) SendMail(Dest []string, Subject, bodyMessage string) error
|
|||
|
||||
err := smtp.SendMail(constants.SMTP_HOST+":"+constants.SMTP_PORT,
|
||||
smtp.PlainAuth("", sender.User, sender.Password, constants.SMTP_HOST),
|
||||
sender.User, Dest, []byte(msg))
|
||||
constants.SENDER_EMAIL, Dest, []byte(msg))
|
||||
if err != nil {
|
||||
|
||||
log.Printf("smtp error: %s", err)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user