Custom form mail

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 have a need for a customized mail script, and you have one available, please contact support@hostgator.com, so that we can insure that you're mail program version does not contain any exploits.

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.

SUMMARY: You must use the server-wide formmail, unless another version has been approved by support@hostgator.com. This helps to insure that no spam is being sent using insecure formmail scripts on the server.

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.

Article Comments

Charles Busby
Your only formmail solution for us exposes an email address for harvesting. You should be advocating a solution or suggesting one that enables people to avoid that exposure.

HostGator
The solution which hides your email address is to create a PHP form.

Providing a web design aspect is outside of the scope of services we normally offer, but I will try to find a PHP solution which HostGator can distribute.

Tom
"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."

Where is this file?

HostGator
View the related article "Steps to making a form on your website where people can email you information (formmail)".

This article show exactly how to use the file; however, the file is not accessible to edit.

Raven
What I want to know is how you set up this recaptcha on the website when the form has to go through the form action /cgi-sys/formmail.pl and they require it to go to a php page or some such but always change the form action to something else.

Raven


HostGator
You can create your own custom form which uses captcha and multiple page redirects, but then you would not need to use our /cgi-sys/formmail.pl as your action.

You can also use custom design to add features to the form we provide, but results will vary.

M.T.
I have a form created using formmail, and I am getting the results by email with only one problem, the results have the form fields all mixed up, and I want them to appear in the order they are on the form. What is the code I need for this to occur and where should it be placed in my form? I have tried a few things, but I'm not coming up with the solution to this bothersome issue. Thanks.

HostGator
The formmail code we offer is not entirely customizable. You CANNOT change what the resulting email's structure.

You will need to create your own script, which can be done using the phpFormGenerator found in Fantastico.

RB
If my form is created using the phpFormGenerator would/can I still use the server-wide formmail script?

HostGator
Sure, but normally a PHP form is better.

If you decide to use a custom form with our formmail scripts, then you will need to update your form with the required hidden inputs.

Read more in the related article "Steps to making a form on your website where people can email you information (formmail)".


Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment