SendGrid
MailHog
Our great sponsors
SendGrid | MailHog | |
---|---|---|
4 | 48 | |
956 | 13,327 | |
1.2% | 1.6% | |
5.1 | 0.0 | |
about 2 months ago | 3 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.
SendGrid
-
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.
MailHog
-
.test
Ah the famous [email protected] email addresses we used to use in our test scripts to avoid sending email to anyone by accident. If we need to test the contents of the email then we use Mailhog these days. Can’t recommend it enough.
https://github.com/mailhog/Mailhog
-
Using Mailhog via Docker For Development
Mailhog
- MailHog: Web and API based SMTP testing
- MailDev is a simple way to test a project's generated email during development
-
Preview emails with letter_opener, MailCatcher and MailHog
hey HN, I recently published an article going deep into email previewing (in Ruby on Rails, but I think it's relevant beyond Rails).
MailCatcher (https://github.com/sj26/mailcatcher) and MailHog (https://github.com/mailhog/MailHog) are super handy and easy to run locally. Both spin up an SMTP server which you can direct mail to, and give you a nice web interface to browse mail and preview it.
Happy to answer any question! thanks, harrison
- Redirect outgoing emails from a sandbox
- Mailpit – a better way for email testing
-
Should testers user own work email in testing an application's email notification?
https://github.com/mailhog/MailHog This is set up for our test environments. Worth looking into
-
Docker + email setup
Does it say it's being send on localhost or on production? How is it "saying" it's being sent. We just setup mailhog to test emails for local development.
-
CIG Server Status Update: a large number have been able to get in and play, next SC build isn't ready for primetime just yet, won't be new status updates unless major change or patch deployment
They should definitely invest in a chaos monkey (like Jim https://github.com/mailhog/MailHog/blob/master/docs/JIM.md)
What are some alternatives?
go-imap - 📥 An IMAP library for clients and servers
Mailpit - An email and SMTP testing tool with API for developers
go-dkim - DKIM package for golang
MailCatcher - Catches mail and serves it through a dream.
hermes - Golang package that generates clean, responsive HTML e-mails for sending transactional mail
maildev - :mailbox: SMTP Server + Web Interface for viewing and testing emails during development.
Hectane - Lightweight SMTP client written in Go
go-message - ✉️ A streaming Go library for the Internet Message Format and mail messages
Gomail - The best way to send emails in Go.
douceur - A simple CSS parser and inliner in Go
Postal - 📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail