Registry / messaging / mail-v2

mail-v2

JSON →
library2.3.1gogounverified

Provides a simple interface to compose and send emails efficiently.

go get gopkg.in/mail.v2
INSTALL
IMPORT
SIG · MAIL-V2
M
mail-v2
messaginggov2.3.1
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
gopkg.in/mail.v2

Sends a simple email using SMTP.

package main import ( "gopkg.in/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
breakingVersion v2 uses gopkg.in/mail.v2; v1 is at gopkg.in/mail.v1.
fix
Use import path gopkg.in/mail.v2 for the latest stable API.
affects: <2.0.0
Upgrade
Version history
2.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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