Analysis  Design  Hosting  Logo Design  Makeover  Packages  Templates 

Formmail

Formmail For security reasons, Matt's Formail script is not allowed on our machines.  Matt's Formmail is full of problems that allow spammers to exploit our servers to send spam.

<form action="/cgi-sys/formmail.pl" method="post">

The HTML code for a simple sample form is outlined here:

<form action="http://www.mydomain.com/cgi-sys/formmail.pl" method="post">
<input type="hidden" name="recipient" value="myemail@mydomain.com">
<p>Name: <input type="text" name="Name" size="20"></p>
<p>Email: <input type="text" name="Email" size="20"></p>
<p>Comment: <textarea name="Comment" rows="1" cols="20"></textarea></p>
<p><input type="submit" value="Submit" name="Submit"></p>
</form>

Note:  If you wish to use an email address that is not from your domain (ie. hotmail), please edit the ".FormMail.conf" file in your root directory.

".FormMail.conf" is a hidden file, which can be edited via the control panel. (Place ".FormMail.conf" in the Create/Edit field).

".FormMail.conf" allows you to control the behavior of your form, and has directions for each directive.

To allow mail to domains other than your account, add the additional domains (one per line) within the "allow_mail_to" directive:

[allow_mail_to]
yourdomain.com
me@hotmail.com
yahoo.com
[/allow_mail_to]

The above example will allow the "recipient" value to be anything@yourdomain.com, anything@yahoo.com, or me@hotmail.com.

To prevent spam, consider the "recipient_alias" directive.

Instead of placing:

<input type="hidden" name="recipient" value="me@mydomain.com">

Using "recipient_alias" allows you to place:

<input type="hidden" name="recipient" value="me">

and still receive email at me@mydomain.com.

[recipient_alias]
me=>me@mydomain.com
1=>me@myisp.com
[/recipient_alias]

If you require further assistance, please submit a help desk request.