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
- Host: GitHub
- URL: https://github.com/karpeleslab/pmail
- Owner: KarpelesLab
- License: mit
- Created: 2023-06-26T05:34:38.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-24T12:18:03.000Z (almost 2 years ago)
- Last Synced: 2024-07-25T08:37:21.693Z (almost 2 years ago)
- Language: Go
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](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
```