From b358b84ff2e901046a58a53329415b26602d77a7 Mon Sep 17 00:00:00 2001 From: x86taka <19627440+x86taka@users.noreply.github.com> Date: Wed, 4 Sep 2024 00:30:20 +0900 Subject: [PATCH] fix: missing content-type header --- pkg/api/core/mail/v0/mail.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/api/core/mail/v0/mail.go b/pkg/api/core/mail/v0/mail.go index 64df950d..150853c2 100644 --- a/pkg/api/core/mail/v0/mail.go +++ b/pkg/api/core/mail/v0/mail.go @@ -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)