
FormMail is a powerful tool for creating contact forms and more, allowing you to collect user input and send it to your email inbox.
With FormMail, you can create custom forms with various fields, including text boxes, dropdown menus, and checkboxes. This flexibility makes it easy to tailor your forms to your specific needs.
One of the key benefits of FormMail is its ability to handle form submissions securely, using encryption to protect user data. This ensures that sensitive information remains confidential.
FormMail also provides a range of features for customizing the form submission process, including the ability to set up multiple email recipients and specify the format of the submitted data.
Setting Up FormMail
To set up FormMail, you'll need to create a Perl script that will process the form data. This script is usually called .cgi and needs to be saved with a .cgi extension.
FormMail requires a Perl interpreter to run, so make sure it's installed on your server.
Expand your knowledge: Matt's Script Archive
Customizing FormMail
To customize the FormMail script, you'll need to upload the FormMail.pl file to your cgi-bin directory. Un-compress the downloaded file and upload the FormMail.pl script to your cgi-bin.
You'll only need to modify two lines in the FormMail.pl script. The first is the @referers line, which should be replaced with your domain name, both with and without the www. For example: @referers = qw(example.com www.example.com).
Modify the @allow_mail_to line to specify the email addresses that the forms will send to. Remove the 'localhost' entry and separate multiple email addresses with a single space. For example: @allow_mail_to = qw([email protected][email protected]).
Save the modified FormMail.pl script after making these changes.
Managing Permissions
To change permissions for the FormMail.pl file, you can use cPanel or an FTP client. In cPanel, log into your account, click on the File Manager icon, and browse to the cgi-bin directory.
To make the necessary changes, right-click on the FormMail.pl file and select Change Permissions. Ensure the User column has read, write, and execute checked, and Group and World have read and execute checked.
Alternatively, you can use an FTP client to change permissions. Browse to the cgi-bin directory, right-click on the FormMail.pl file, and look for the CHMOD option. This will open a dialog box where you can make the necessary changes, including ensuring execute is turned on for all types of users and the numbers have changed to 755.
Change Permissions in cPanel
To change permissions in cPanel, log into your account first. Once you're logged in, click on the File Manager icon under the Files subheader. This will take you to a list of your files and folders. From there, browse to the cgi-bin by clicking on the folder icons for public_html > cgi-bin.
The next step is to right-click on the FormMail.pl file and select Change Permissions. You'll then see a permissions table with checkboxes for User, Group, and World. For read, write, and execute permissions, make sure the User column has all three checkboxes checked.
To save your changes, click the Change Permissions button. This will update the permissions for the FormMail.pl file.
Change Permissions via FTP
If you're using an FTP client, you can change permissions by browsing to the cgi-bin directory and right-clicking on the FormMail.pl file.
You'll then look for an option called CHMOD, which will open a dialog box where you can make the necessary changes.
Make sure to turn on execute for all types of users, and confirm that the numbers have changed to 755.
Featured Images: pexels.com


