We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main import ( "log" "net/mail" ) func formatEmailAddress(emailaddress, name string) string { a := new(mail.Address) if "" == emailaddress { return "" } a.Address = emailaddress if "" != name { a.Name = name } return a.String() } func main() { s := formatEmailAddress("[email protected]", "naé, mée") log.Println(s) a, err := mail.ParseAddress(s) if nil != err { log.Println("error because:", err) } else { log.Println("name is:", a.Name, "email is:", a.Address) } }
The text was updated successfully, but these errors were encountered:
This is a duplicate of #11292. I will fix that bug when CL 14957 is merged.
Sorry, something went wrong.
CL https://golang.org/cl/16012 mentions this issue.
Closing as dupe
No branches or pull requests
The text was updated successfully, but these errors were encountered: