Gomail
The best way to send emails in Go. (by go-gomail)
SendGrid
The Official Twilio SendGrid Golang API Library (by sendgrid)
Our great sponsors
Gomail | SendGrid | |
---|---|---|
2 | 4 | |
4,197 | 956 | |
0.6% | 1.2% | |
0.0 | 5.1 | |
about 1 year ago | about 1 month ago | |
Go | Go | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
Gomail
Posts with mentions or reviews of Gomail.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-25.
-
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:
SendGrid
Posts with mentions or reviews of SendGrid.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-07.
-
How to Send Emails in Go
There’s a number of resources ready to work with Go that you can utilize. Mailgun offers its own SDK for Go. SendGrid also comes with its own community-driven Go library. If Mailjet is your choice, you’ll also find numerous code samples for Golang in their REST API docs. If you prefer other platforms, you’ll likely find other user-made libraries to make integration smoother.
-
Introducing go-api-basic - another template/boilerplate RESTful web server
You're right on both of these, and I'm not settled on this at all. Struct initialization and element setting are something I haven't landed on yet for larger structs. Personally, I like the pattern like sendgrid uses for struct initialization (examples here). Using the context of my repo, seems like if they are just initializing a struct, they'd use NewMovie and if they are actually adding logic as part of the struct initialization, they'd use NewMovieInit (e.g. in their repo, NewV3Mail and NewV3MailInit).
-
Which is most efficient way to read a http response body
the email package is sendgrid go client https://github.com/sendgrid/sendgrid-go For the attachment it takes a based64 encoded string Ex:
-
What's a Library Client what you really like about their API approach?
I like https://github.com/sendgrid/sendgrid-go for Twilio's Sendgrid. I got some good ideas from it - I like the way they do initializers and give you already initialized maps and slices, etc.
What are some alternatives?
When comparing Gomail and SendGrid you can also consider the following projects:
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
go-dkim - DKIM package for golang
go-simple-mail - Golang package for send email. Support keep alive connection, TLS and SSL. Easy for bulk SMTP.
smtp - MailHog SMTP Protocol
Hectane - Lightweight SMTP client written in Go
email - Robust and flexible email library for Go
go-message - ✉️ A streaming Go library for the Internet Message Format and mail messages