Skip to content

Commit

Permalink
Merge pull request #194 from homenoc/fix/mail-content-type
Browse files Browse the repository at this point in the history
fix: missing content-type header
  • Loading branch information
x86taka authored Sep 9, 2024
2 parents 2ad5e84 + b358b84 commit 54644fa
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 54644fa

Please sign in to comment.