From a4bf66a1d1bdcbf0e33f5af4e78665781461084c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20PASTOURET?= Date: Fri, 2 Oct 2020 11:47:38 +0200 Subject: [PATCH] Add MailHog in the code example as a tool for testing email sending (#2151) * Add MailHog - Testing email sending * Add MailHog - Testing email sending --- examples/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/README.md b/examples/README.md index 6b52fc3d..7ef9c377 100644 --- a/examples/README.md +++ b/examples/README.md @@ -13,6 +13,7 @@ When working on email sending code you'll find yourself worrying about what migh * [fakesendmail.sh](https://github.com/PHPMailer/PHPMailer/blob/master/test/fakesendmail.sh), part of PHPMailer's test setup, this is a shell script that emulates sendmail for testing 'mail' or 'sendmail' methods in PHPMailer. * [HELO](https://usehelo.com), a very nice (commercial) mail server desktop app from BeyondCode. * [msglint](http://tools.ietf.org/tools/msglint/), not a mail server, the IETF's MIME structure analyser checks the formatting of your messages. +* [MailHog](https://github.com/les-enovateurs/mailhog-examples), a Go-based email testing tool for developers with a web interface. You can use it with Docker and GitHub Actions to test your mails. The repository also contains a small part of PHPMailer's setup. Most of these examples use the `example.com` and `example.net` domains. These domains are reserved by IANA for illustrative purposes, as documented in [RFC 2606](http://tools.ietf.org/html/rfc2606). Don't use made-up domains like 'mydomain.com' or 'somedomain.com' in examples as someone, somewhere, probably owns them!