Registry / messaging / go-mail-mail

go-mail-mail

JSON →
library2.3.1+incompatiblegogounverified

Package gomail provides a simple interface to compose emails and to mail them efficiently.

go get github.com/go-mail/mail
INSTALL
IMPORT
SIG · GO-MAIL-MAIL
G
go-mail-mail
messaginggov2.3.1+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mail
github.com/go-mail/mail

Send a simple email

package main import ( "github.com/go-mail/mail" ) func main() { m := mail.NewMessage() m.SetHeader("From", "from@example.com") m.SetHeader("To", "to@example.com") m.SetBody("text/plain", "Hello!") d := mail.NewDialer("smtp.example.com", 587, "user", "pass") d.DialAndSend(m) }
Debug
Known issues
breakingVersion 2.x uses a different API than v1; check import path for compatibility.
fix
Use github.com/go-mail/mail/v2 for v2.x.
affects: >=2.0.0
Upgrade
Version history
2.3.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
2
Resources
go-mail-mail — go get go-mail-mail · libregistry