Is the syntax of the email field checked?

The documentation for PHPFormMail (borrowed from the Perl version) says If you want to require an email address with valid syntax, add this field name to the 'required' field. When I do this and use an e-mail field that is not valid, this is not detected. I've looked at the code of 1.07.2 and I can't see anywhere where this checking is taking place.

One fix would be to replace this text by text suggesting that the provider of the form provides a hidden field called mail_regex. The documentation should provide an appropriate setting of this variable. (There are plenty of suggests for this on the web!)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

This is a good

This is a good idea/catch/clarification. I'll work on including this in the next version.

-Andrew M Riley

User login