Nicholas Skinner

Freelance website and web application developer

Archive for August, 2010

Simple PHP Form Mail Script

Sunday, August 1st, 2010

I recently received a request from someone for a very simple script to send an email from a HTML form. There are various options available such as the downloadable PHP FormMail and services like Wufoo however FormMail did not seem suitable when they wanted to code the HTML part themselves, and hosted services are either branded with the company logo or an unnecessary extra cost if PHP is already supported on the web server (especially if only something simple is required).

I therefore coded a very simple PHP script that will email any posted form to a specified address, reading through the field names automatically from the HTML form.

Download: PHP Form Mail Script