Frequently asked questions about the FormMail CGI script.
Check your mail path.
This often happens because of one of two problems:
The $mailprog variable might be incorrect. Many systems do not have sendmail in /usr/lib (the default). To find where it's located, use:
which sendmail
Common locations:
/usr/sbin/sendmail/usr/lib/sendmail/usr/bin/sendmailAsk your system administrator what mail programs are available. Alternatives include: mailx, mail, or modern options like msmtp, postfix.
Yes.
Put multiple e-mail addresses in the recipient field, separated by commas:
<input type="hidden" name="recipient"
value="[email protected],[email protected]">
There's a bug in the URL validation.
The script checks that the URL starts with http://. If your URL doesn't start with that, you have two options:
Make sure your redirect URL starts with http:// or https://
Find line 204 and remove the URL check
To modify the script, find this line (around line 204):
if ($CONFIG{'redirect'} =~ /http\:\/\/.*\..*/) {
Change it to:
if ($CONFIG{'redirect'}) {
This will accept any URL or URI in the redirect field.
Questions about the Guestbook script
Questions about the bulletin board
Browse all script FAQs