Closed awalvie closed 11 months ago
Probably because there is an empty newline before "To". Note, well-formed emails use \r\n
line endings instead of \n
.
Anyways, not a go-smtp bug.
Yup, that was it. Apologies about my own stupidity there, probably should have asked instead in the irc channel instead of creating an issue. Thank you for the insanely quick reply though. Really appreciate it.
I'm using
smtp.SendMail
to send emails via gmail. The body of the email is being generated by a text go template. I'm running into an issue where the received email doesn't set the headers properly. How do I know the headers are not being set properly -- well because the received email says(no subject)
Ref:Here's the code snippet I'm using:
email template: