FormMail Tutorial

Editing the Script

Open the FormMail.pl script in your preferred text edit, such as TextEdit or BBEdit.

WARNING: UNNECESSARY EDITING OF THE SCRIPT MAY CAUSE THIS TO BREAK.

Navigate to the section of the script which includes:

$mailprog = '/usr/lib/sendmail -oi -t';
$postmaster = '';
@referers = qw(dave.org.uk 209.207.222.64 localhost);
@allow_mail_to = qw(you@your.domain some.one.else@your.domain localhost);

There are a few lines here you need to edit to get the fundamentals of the form working:

$mailprog = '/usr/lib/sendmail -oi -t';

This the path to the sendmail program on your ISP's server. Replace the /usr/lib/sendmail/ to be the location advised by the ISP.

$postmaster = '';

Enter the envelope sender address between the ' ' to use for all emails sent by the script. This address will receive bounce messages if a confirmation email cannot be delivered (should you choose to enable this parameter in the script - consult the readme for further information). If in doubt, put your own email address here. i.e. = 'you@domain.com';

@referers = qw(dave.org.uk 209.207.222.64 localhost);

Replace the dave.org.uk, the IP address and localhost to the domain name/IP of the server. For example, for a form residing on the Softpress server this may say qw(softpress.com);

@allow_mail_to = qw(you@your.domain some.one.else@your.domain localhost);

Replace the email addresses in this field with the email addresses of the person(s) that will receive the results of the feedback form.

Save the formmail.pl script file. It must be saved a text file and do not change the name of the file - it should be called formmail.pl.

 

back    next