Open atc0005 opened 4 years ago
https://github.com/emersion/go-smtp/commit/2f00eafcaf68a4520bbb481360d2237fd3f9edba
The Go standard library provides a SMTP client implementation in
net/smtp
. Howevernet/smtp
is frozen: it's not getting any new features. go-smtp provides a server implementation and a number of client improvements.
See the example on https://github.com/tangingw/go_smtp/blob/3f565e36c589fba5c3389422bac69a47a9d1366b/send_mail.go#L52-L85 for an example of encoding the body before it is sent.
I would quote here, but the repo doesn't specify a license.
Some tutorials:
https://github.com/jordan-wright/email
Found that one by way of the mailtrap.io tutorial, haven't dug into it yet.
@atc0005: There is:
Ranked by "last activity" (as of 2020-07-09):
https://golang.org/pkg/net/smtp/
https://github.com/go-gomail/gomail
https://github.com/go-mail/mail
go-gomail/gomail
https://github.com/xhit/go-simple-mail
https://github.com/emersion/go-smtp