My question is short, I have a golang application from which I am trying to send an email using net/smtp.sendmail:
This is the command which I am going to use
smtp.SendMail(server, auth, **from**, to, msg)
No usually people pass the sender's email address to from. Is there anyway I can pass a sender's name as well?
So the recipient will get an email from:
Foo Bar <firstname.lastname@example.org>
instead of an email from
I checked the official documentation and dozens of examples online but could not find anything.