go-mail
Gomail
Our great sponsors
go-mail | Gomail | |
---|---|---|
8 | 2 | |
428 | 4,197 | |
- | 1.1% | |
8.6 | 0.0 | |
about 1 month ago | 12 months ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-mail
-
Code Sample to Send Emails in Go with the net/SMTP Package
The gomail package you are referring to has not seen an update for 6 years and seems to be unmaintained. I suggest to use go-mail instead, which is actively maintained and implements some additional features that are not found in the unmaintained one.
-
Sending mails in Go the easy way
$ go run main.go Date: Sat, 08 Oct 2022 12:47:50 +0200 MIME-Version: 1.0 Message-ID: <[email protected]> Subject: Why are you not using go-mail yet? User-Agent: go-mail v0.2.9 // https://github.com/wneessen/go-mail X-Mailer: go-mail v0.2.9 // https://github.com/wneessen/go-mail From: To: Content-Type: multipart/alternative; boundary=9c5a427bc18e45ff56e0b8f7053cddceaca54a5c985a425213544ab7977f --9c5a427bc18e45ff56e0b8f7053cddceaca54a5c985a425213544ab7977f Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 You won't need a sales pitch. It's FOSS and HTML! --9c5a427bc18e45ff56e0b8f7053cddceaca54a5c985a425213544ab7977f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 You won't need a sales pitch. It's FOSS and plain text! --9c5a427bc18e45ff56e0b8f7053cddceaca54a5c985a425213544ab7977f--
-
Sending (form-)mails from static websites with Go
Due to the above mentioned reasons and the lack of proper alternatives decided to write my own Go mail library. On a long weekend I started working on wneessen/go-mail and in the night of Sunday I had a kind of working prototype and I implemented it with js-mailer.
Gomail
-
Sending (form-)mails from static websites with Go
In the first iterations of js-mailer I used the popular go-gomail/gomail package for handling the mail sending part. Unfortunately the project isn't maintained anymore and uses some pretty outdated opinions on how to handle the mail sending.
-
Go, RabbitMQ and gRPC Clean Architecture microservice 💫👋
I use Gomail for send emails, of course some SMTP server is required, but you can google many free variants for testing. Send method is very simple:
What are some alternatives?
MailHog - Web and API based SMTP testing
hermes - Golang package that generates clean, responsive HTML e-mails for sending transactional mail
go-imap - 📥 An IMAP library for clients and servers
smtp - MailHog SMTP Protocol
go-simple-mail - Golang package for send email. Support keep alive connection, TLS and SSL. Easy for bulk SMTP.
email - Robust and flexible email library for Go
go-dkim - DKIM package for golang
Hectane - Lightweight SMTP client written in Go
SendGrid - The Official Twilio SendGrid Golang API Library
go-mail - :incoming_envelope: Simple email interface across multiple service providers (ses, postmark, mandrill, smtp)
mailgun-go - Go library for sending mail with the Mailgun API.
go-premailer - Inline styling for html mail in golang