Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: incrediBILL
<form name="frm" action="cgi-bin/LoanRequest.pl" method="post" onSubmit="return validate(frm)">
<input type=hidden name="formmail_mail_email" value="email@example.com" />
The file LoanRequest.pl is definitely in the CGI Bin. When the submit button is pushed, you are brought to another page that tells you exactly what you submitted.
But it absolutely will NOT send the email to me from this page. The NetSol control panel has a form generator that creates the files for the CGI bin. That canned form is where I got the above code.
Why does it not send me the emails, even though it does bring up the .pl confirmation page?
[edited by: incrediBILL at 5:47 pm (utc) on Dec. 13, 2009]
[edit reason] exemplified - only use example.com [/edit]
The NetSol control panel has a form generator that creates the files for the CGI bin.....even though it does bring up the .pl confirmation page?
So you are using a canned solution, did not write the script, and it's obviously running.
First question: is it supposed to provide both a "submittor copy" and a "company copy?" If so, do you get either of these, or neither?
Try entering a **different** email in the form fields for testing (not the hidden.) That is, if the send-to in the hidden field is firstname.lastname@example.org, enter your gmail, hotmail, or yahoo email address in the visible email field (i.e., anything but an example.com email.) One of the common attacks from spammers is to send emails to "anything"@example.com via a dictionary attack, and the script may be stopping this.
Second place to look is the site error logs.
Agreed though, a canned script with a send-to as a hidden field is a recipe for being popular in the spam mailing lists.
I know the path is correct in my script, since it is the same path as the canned form.
When I make my own form, I name it the same as the one used in the canned form. When I click SUBMIT the form displays a confirmation showing what was submitted.
But the form results are never emailed to me. Why?
Also, the script may be placing a header in the email which is cause it to be rejected by your email host. If you have a catch-all email account, they may wind up there if the mail is rejected.
possible the perl script is not configured correctly and is unable to send mail out. For example, if the path to the mailing program, such as sendmail, may be wrong.
also check to make sure the setting in the script have emails turned on. sometimes they are off by default.
the possible causes for this are many and it may be a big time saver to ask someone who is familiar with the host to log into your account and check things for you... just make sure you can trust them.