Registry / messaging / xhit-go-simple-mail-v2

xhit-go-simple-mail-v2

JSON →
library2.16.0gogounverified

Package mail provides a simple interface for sending emails in Go.

go get github.com/xhit/go-simple-mail/v2
INSTALL
IMPORT
SIG · XHIT-GO-SIMPLE-MAI
X
xhit-go-simple-mail-v2
messaginggov2.16.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/xhit/go-simple-mail/v2

Send an HTML email via SMTP.

package main import ( "github.com/xhit/go-simple-mail/v2" ) func main() { server := mail.NewSMTPClient() server.Host = "smtp.example.com" server.Port = 587 server.Username = "user" server.Password = "pass" email := mail.NewMSG() email.SetFrom("from@example.com").AddTo("to@example.com").SetSubject("Test").SetBody(mail.TextHTML, "<h1>Hello</h1>") err := email.Send(server) if err != nil { panic(err) } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
xhit-go-simple-mail-v2 — go get xhit-go-simple-mail-v2 · libregistry