I am looking for free/opensource php form email script/class. The main requirement is that the PHP (logic) and the HTML and CSS (design) are separated, i.e. i can create forms as short or as long as i need with all kinds of inputs/fields and the script would handle the processing automagically.
The form should validate user input (check for empty fields, sanitise code and check emails against regular expressions), have the option to define required fields, have anti-spam features such as captcha, return errors so that they can be highlighted to the user and email results to specified address.
If possible have the ability to use it in commercial projects without back links.
So far I've found: PHPFormailMail but it doesn't seem to be supported anymore and Wufoo requires back links and is hosted offsite.
Not too much to ask? Does anything like this exist? Are there any web services they help create contact forms if no php script is available?