Skip to content

Commit

Permalink
Merge pull request #196 from homenoc/x86taka-patch01
Browse files Browse the repository at this point in the history
fix: mail header
  • Loading branch information
x86taka authored Sep 9, 2024
2 parents 54644fa + 62f18cf commit 2ad7833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/core/mail/v0/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ func SendMail(d mailStruct.Mail) error {
receivers := []string{to.Address}

msg := "" +
"Content-Type: text/plain; charset=\"UTF-8\"\r\n" +
"From:" + from.String() + "\r\n" +
"To:" + to.String() + "\r\n" +
encodeSubject(d.Subject) + "\r\n" +
"Content-Type: text/plain; charset=UTF-8\r\n" +
"\r\n" + d.Content + "\r\n"

auth := smtp.PlainAuth("", config.Conf.Mail.User, config.Conf.Mail.Pass, config.Conf.Mail.Host)
Expand Down

0 comments on commit 2ad7833

Please sign in to comment.