Skip to content

Commit

Permalink
fix: missing content-type header
Browse files Browse the repository at this point in the history
  • Loading branch information
x86taka committed Sep 3, 2024
1 parent 2ad5e84 commit b358b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/core/mail/v0/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func SendMail(d mailStruct.Mail) error {
"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 b358b84

Please sign in to comment.