An open API service indexing awesome lists of open source software.

https://github.com/karpeleslab/pmail

simple package to generate MIME emails in Go
https://github.com/karpeleslab/pmail

Last synced: 12 months ago
JSON representation

simple package to generate MIME emails in Go

Awesome Lists containing this project

README

          

[![GoDoc](https://godoc.org/github.com/KarpelesLab/pmail?status.svg)](https://godoc.org/github.com/KarpelesLab/pmail)

# pmail

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

# Sample usage

```go
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
```