从Go发送带有“名称” <email>的电子邮件

I'm using net/smtp to send emails, which appears unable to handle contact names in emails.

c, _ := smtp.Dial("smtp.example.com:25")
c.Mail(`jdoe@example.com`)

rather than

c, _ := smtp.Dial("smtp.example.com:25")
c.Mail(`"John Q. Doe" <jdoe@example.com>`)

Is there a good way to handle this? I'd prefer something encapsulated and standard if available, but I'm willing to work with raw SMTP if that's all that can be done.

can you try without the double quotes? ie

c.Mail(`John Q. Doe <jdoe@example.com>`)
smtpServer := "smtp.example.com"
auth := smtp.PlainAuth("", "from@example.com", "******", smtpServer)

from := mail.Address{"fromName", "from@example.com"}
to := mail.Address{"toName", "to@example.com"}
msg := []byte("From: " + from.String() + "
" +
"To: " + to.String() + "
" +
"Subject: Awesome Subject !
" +
"This is the email body.
")
err := smtp.SendMail(smtpServer + ":25", auth, from.Address,[]string{to.Address}, msg)
if err != nil {
    log.Fatal(err)
}