Skip to content

KarpelesLab/pmail

Repository files navigation

GoDoc

pmail

go-based email sending lib, including html emails, attachements, etc and with various email sending methods

Sample usage

	m := pmail.New()
	m.SetSubject("test")
	m.SetFrom("test@localhost")
	m.AddTo("bob@localhost")
	m.SetBodyText("Hi\nThis is an email!\n")

	m.Send(pmail.Sendmail) // on linux, if sendmail is configured

About

simple package to generate MIME emails in Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published