Sometimes sending email can be a pain for some servers. Especially if it is shared hosting with a blacklisted IP, and all the emails sent either go to the spam box or don’t get delivered at all. As one of my services, I deploy web applications and most of the time sending email from my staging server is completely fine, but not on the client’s hosting server.
So because I’m checking it over and over, in my free time I created a simple script to send email from the server. If you are interested, please see it on my GitHub page and if you have any ideas or feedback please let me know. Please see the repository here: PHP Mail Tester
Installation
The installation is pretty simple. All you need is composer because I’m using the PHPMailer library as a dependency.
1. Clone the repository from my GitHub repository here.
2. Run composer install inside that folder.
3. Edit the config.php file — I have all the samples there, all you need is just replace the values.
4. Run it and you will see the debug information.
Feedback
I am very welcome to any feedback or merge request. Please let me know.
