Skip to content

Commit 62f18cf

Browse files
committed
fix: mail header
1 parent 54644fa commit 62f18cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/core/mail/v0/mail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ func SendMail(d mailStruct.Mail) error {
4949
receivers := []string{to.Address}
5050

5151
msg := "" +
52+
"Content-Type: text/plain; charset=\"UTF-8\"\r\n" +
5253
"From:" + from.String() + "\r\n" +
5354
"To:" + to.String() + "\r\n" +
5455
encodeSubject(d.Subject) + "\r\n" +
55-
"Content-Type: text/plain; charset=UTF-8\r\n" +
5656
"\r\n" + d.Content + "\r\n"
5757

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

0 commit comments

Comments
 (0)