Bobby's Blog

Simple PHP Mail Script

Simple PHP mail script

Simple PHP Mail Script

Very simple Simple PHP mail script. Usually I use it for testing purposes, so I’m just going to save it here 😀

Copy and paste this into a test-mail.php file:

Then to run the script just run:

I would assume that you are testing this on a Linux machine, so if you need to send a few emails you can do something like this:

This would run the test PHP script 3 times.

About the author


Linux System Administrator