Steps to Making a Form on Your Website Where People Can Email You Information (FormMail)

Updating the Existing Mail Form

The options for how to accomplish this depend on the server which your site is hosted on. Please check the section appropriate to your hosting type:

Linux Servers

HostGator recommends using our approved FormMail script for users on Linux servers. This has been tested thoroughly in our hosting environment, and using this version of FormMail ensures that you will not be held accountable for any exploits or issues resulting from its use.

Instructions and a tutorial for modifying our default FormMail script can be found here:

Windows Servers

HostGator's FormMail script is not compatible with Windows servers. The same functionality will require coding to use CDOSYS to send a script with SMTP credentials via an email address on your server.

Example Authenticating Email Script

Click to expand example code for use on Windows Servers.


Third-Party FormMail Scripts

If you have a customized FormMail script you wish to use, such as one created with a third-party generator, please make sure that it complies with our Terms of Service and Acceptable Use Policy.

Note: HostGator cannot support third-party scripts. If you need assistance with unique scripting requirements, site customization or website design, please contact our HostGator Design Services for a quote.