Registry / messaging / gomail-v2

gomail-v2

JSON →
library2.0.0-20160411212932-81ebce5c23dfgogounverified

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

go get gopkg.in/gomail.v2
INSTALL
IMPORT
SIG · GOMAIL-V2
G
gomail-v2
messaginggov2.0.0-20160411212932-81ebce5c23df
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.

gomail
gopkg.in/gomail.v2

Sends a simple email via SMTP.

package main import ( "gopkg.in/gomail.v2" ) func main() { m := gomail.NewMessage() m.SetHeader("From", "alice@example.com") m.SetHeader("To", "bob@example.com") m.SetBody("text/plain", "Hello!") d := gomail.NewDialer("smtp.example.com", 587, "user", "pass") if err := d.DialAndSend(m); err != nil { panic(err) } }
Debug
Known issues
gotchaGomail v2 is no longer actively maintained; consider using alternatives like go-mail.
fix
Migrate to a maintained library such as github.com/go-mail/mail.
affects: *
Upgrade
Version history
2.0.0-20160411212932-81ebce5c23dflatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
gomail-v2 — go get gomail-v2 · libregistry