An open API service indexing awesome lists of open source software.

https://github.com/les-enovateurs/mailhog-examples

Try Mailhog with Docker and different languages.
https://github.com/les-enovateurs/mailhog-examples

email examples hacktoberfest mailhog php testing

Last synced: 3 days ago
JSON representation

Try Mailhog with Docker and different languages.

Awesome Lists containing this project

README

        




MailHog - PHP Example


MailHog - Examples


Try MailHog with Docker and PHP.


Buy Me A Coffee


Key Features
How To Use
Contributing
Credits
License

![screenshot](https://user-images.githubusercontent.com/3491729/73590042-09703b00-44de-11ea-9c41-89b1d504b5e1.gif)

## Key Features

* Set up and launch MailHog
* Configure and send an email with PHP
* Use Docker-compose to build this project
* Cross platform :
- Windows, macOS and Linux ready.

## How To Use

To clone and run this application, you'll need [Git](https://git-scm.com) and [Docker](https://www.docker.com/) installed on your computer. From your command line:

```bash
# Clone this repository
$ git clone https://github.com/les-enovateurs/mailhog-examples.git

# Go into the repository
$ cd mailhog-examples

# Run the app
$ docker-compose up -d
```
Then open a browser and go to this link [http://localhost/](http://localhost/).

Note: if you want to know more about the code and how it works :
- You can analyse the (few) files
- Or read [this article](https://les-enovateurs.com/mailhog-testez-gerez-mails-developpement/).

## Contributing

We are interested in implementing other MailHog examples using various languages like Python, Go, C... and we are open to any suggestions.

You can also submit code to handle Jim's Chaos mode :)

## Credits

This software uses the following open source packages:

- [MailHog](https://github.com/mailhog/MailHog)
- [Docker](https://www.docker.com/)
- [PHP](https://www.php.net/)
- [Composer](https://getcomposer.org/)
- [PHPMailer](https://github.com/PHPMailer/PHPMailer)

## You may also like...

- [Livre Phalcon](https://github.com/les-enovateurs/livre-phalcon) - Many examples showing how to use Phalcon PHP Framework.
- [Ansible Wordpress Secure](https://github.com/les-enovateurs/AnsiblePlayWordPressSecure) - An Ansible script to install and secure a WordPress site.

## License

GPL-3.0

---

> [Les-Enovateurs.com](https://les-enovateurs.com/)  · 
> GitHub [@jenovateurs](https://github.com/jenovateurs)  · 
> Twitter [@LesEnovateurs](https://twitter.com/LesEnovateurs)