Registry / messaging / go-mail-mail-v2

go-mail-mail-v2

JSON →
library2.3.0gogounverified

A simple Go library for composing and sending emails efficiently with support for attachments and HTML.

go get github.com/go-mail/mail/v2
INSTALL
IMPORT
SIG · GO-MAIL-MAIL-V2
G
go-mail-mail-v2
messaginggov2.3.0
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/v2

Send an email using SMTP.

package main import ( "github.com/go-mail/mail/v2" ) 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

No known issues recorded.

Upgrade
Version history
2.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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