Skip to content

Mail address parsing library for Go

License

Notifications You must be signed in to change notification settings

Teamwork/mailaddress

Repository files navigation

Build Status codecov GoDoc Go Report Card

The mailaddress package parses email addresses.

It's an alternative to net/mail; significant differences include:

  • Better errors.
  • When parsing a list it will continue to the next address on an error; this is especially useful when providing feedback to users.
  • Some useful utility functions.

Basic example:

addr, err := mailaddress.Parse(`Martin <[email protected]>`)

addrs, haveErr := mailaddress.ParseLint(`[email protected], [email protected]`)
if haveErr {
	fmt.Println(addrs.Errors())
}

See godoc for more docs.

About

Mail address parsing library for Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages