Simple PHP Mail Script Localhost and SMTP

Here is a simple mail script to test your servers php mail function.

Basic PHP mail() function:

SMTP:

You can replace the to, subject, message body and from email for testing.