Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jfa-go/commit/36f3860c4c3df9c5eff3a26295585b92b8ca07c7 You should set ROOT_URL correctly, otherwise the web may not work correctly.

SMTP: Always use plaintext as main body

Adding the HTML as the alternative body caused the plaintext email to
always appear. Should fix .
tailwind
Harvey Tindall 3 years ago
parent f78fa28822
commit 36f3860c4c
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -170,11 +170,9 @@ func (sm *SMTP) Send(fromName, fromAddr string, email *Message, address ...strin
e.SetFrom(from)
e.SetSubject(email.Subject)
e.AddTo(address...)
if email.HTML == "" {
e.SetBody(sMail.TextPlain, email.Text)
} else {
e.SetBody(sMail.TextHTML, email.HTML)
e.AddAlternative(sMail.TextPlain, email.Text)
e.SetBody(sMail.TextPlain, email.Text)
if email.HTML != "" {
e.AddAlternative(sMail.TextHTML, email.HTML)
}
err = e.Send(cli)
return err

Loading…
Cancel
Save