FormMail is a very popular method of emailing the contents of a form to a user. It is relatively easy to set up and does its job well. However, spammers have found security holes in previous versions and this allows them to send mail through whatever server the account is set up on.
Since we have a very strict anti-spam policy, we cannot allow you to use your own FormMail scripts. We ask that you use the server-wide FormMail script, instead. This way, if there are any exploits found on this version of FormMail, you will not be held accountable.
If you already have scripts that utilize formmail, you will need to change the ACTION parameter in the FORM tag. How?
Reminder: One drawback of using the server-wide FormMail script, is that you must send the contents of the form to an address that is on your domain name. If you need the mail sent to an off-site email address, you can set up an E-Mail Forwarder to forward any mail from the email address on your domain to your off-site email address.
NOTE: If you are familiar with Matt's FormMail script, most of the options that are available in that FormMail are available in the server-wide formmail. However, the script is not the same. The server-wide FormMail was developed by cPanel Developers. Please do not try to contact the support team for Matt's FormMail concerning any issues.
How to use sendmail with PHP
Steps to making a form on your website where people can email you information (formmail)