atc0005 / learn

Various topics that I want to learn more about, either for professional development or for my own use
0 stars 0 forks source link

Golang | sending email #47

Open atc0005 opened 4 years ago

atc0005 commented 4 years ago

Ranked by "last activity" (as of 2020-07-09):

atc0005 commented 4 years ago

https://github.com/emersion/go-smtp/commit/2f00eafcaf68a4520bbb481360d2237fd3f9edba

The Go standard library provides a SMTP client implementation in net/smtp. However net/smtp is frozen: it's not getting any new features. go-smtp provides a server implementation and a number of client improvements.

atc0005 commented 4 years ago

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.

atc0005 commented 4 years ago

Some tutorials:

atc0005 commented 4 years ago

https://github.com/jordan-wright/email

Found that one by way of the mailtrap.io tutorial, haven't dug into it yet.

Neustradamus commented 1 day ago

@atc0005: There is: