Let’s get started with downloading MailHog. However, you still have to download it and set it up in your development environment. Deploying MailHog on Various PlatformsĪs mentioned before, MailHog doesn’t need to be installed. Release Captured Emails: You can configure MailHog to release captured emails to real SMTP servers for delivery.Īpart from the above features, MailHog currently has two client libraries for PHP and NodeJS environments to interact with the MailHog API easily.Authentication: MailHog supports HTTP basic authentication for both its Web UI and API. It also supports multipart MIME and encoded headers. Web UI: You can use MailHog’s Web UI to view emails as plain text, HTML, or source.Download Attachments: MailHog supports the download of individual MIME parts.Emails Capture and Storage: The captured emails can be stored in in-memory message storage and persisted in a MongoDB database and file-based stored system.Real-time Updates: MailHog uses the EventSource web interface to provide instantaneous updates.It does this by randomly creating common email deliverability problems, such as rejected connections/authentications and rate-limited connections. Failure Testing: You can invite Jim, MailHog’s Chaos Monkey (yes, it’s actually called that), to the party to test out your web app’s email deliverability. API Support: You can use MailHog’s built-in HTTP API (or JSON API) to retrieve, list, and delete emails.It also includes support for SMTP AUTH and PIPELINING. Extended SMTP Support: Not only does MailHog support setting up a fake SMTP server, but you can also use it to set up an ESMTP server (Extended SMTP).That makes it highly portable to run it on almost any operating system or web server. Lightweight and Portable: You don’t need to install MailHog to use it.MailHog comes equipped with many features out-of-the-box. It’s a powerful feature, and how you use the API is up to you. Lastly, MaiilHog also lets you retrieve those emails with an API for automated testing. It even stores the sent and received emails in a nifty web UI, so you can go through them just like you’d with a real email inbox. It sets up a fake SMTP server that you can set your web application to send and receive emails. It can hurt your private email’s credibility. Then you’ll have to make sure that the emails arrive successfully in your recipient’s inbox, which can end up wasting your time (and inbox space).Īnd then there’s the issue of using a real email address for testing. How an SMTP server works (Source: Wikimedia Commons)įirst, you need to set up your operating system, webserver, and web app to enable emails in a local environment. You can read our extensive guide on free SMTP servers to know more about how an SMTP server works. In a local development environment, it almost always never works due to multiple reasons. Typically, the web application’s default SMTP server takes care of this task. If you want to test a contact form or any other outgoing email from it, it can be a dire task. Say you’re developing a WordPress website in a local development environment. MailHog solves many of email testing’s major problems. MailHog is maintained by Ian Kent and released under the MIT license, so you can deploy it freely for personal and commercial uses.īut why do you even need MailHog in the first place? Why You Need MailHog It enables you to test your web app’s email sending and receiving capabilities more efficiently.īuilt with the Go programming language, MailHog can be run on multiple operating systems, including Windows, Linux, FreeBSD, and macOS. MailHog is an open source email testing tool primarily aimed at developers. Want to simplify local email testing? Get MailHog □ Learn how to deploy it easily on various platforms/configurations right here □ Click to Tweet Prefer to watch the video version?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |