Windows users: Do not open the FormMail.pl script in Notepad! The result will be unreadable.
The following areas need to be customized:
Open the file in a text editor and scroll down until you get to this:
The script must point at whatever path location Perl is located on the server. You can get this information from your provider.
$mailprog = '/usr/lib/sendmail -i t';
The script must point at whatever path location sendmail is located on the server. You can get this information from your provider.
@referers = ('yourwebserver.com'),('184.108.40.206');
The script must point at the web server you plan to use this on. The second listing is the IP address of the web server. The easiest way to get this is to go to the DOS command line and ping the server, as shown in Figure 1.
Figure 1 Ping your web server.
Type in the ping command as shown in Figure 1. Although the result is atypicalit looks like ping has been disabled because the server worked fine a few seconds laternote that the IP of my web server was immediately returned.
@recipients = &fill_recipients('yourISP.com')
If you need more than a single domain or subdomain for sending e-mail, do read the docs. For example, you might need to do this is if you want to add more options for environment variables than what is provided by the choice allowed in the access control directive line:
@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_[ccc] USER_AGENT');
That's it. You're done with FormMail.pl. Upload it to your web server CGI directory.