homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Form submission help
Site is on Network Solutions Hosting

 4:33 pm on Dec 13, 2009 (gmt 0)

Please somebody help - NetSol tech suppt is useless!

My code:
<form name="frm" action="cgi-bin/LoanRequest.pl" method="post" onSubmit="return validate(frm)">
<input type=hidden name="formmail_mail_email" value="me@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]



 11:48 pm on Dec 13, 2009 (gmt 0)

A hidden field to set the place the script would send email to: that's an outright disaster as spammers will find your script and send out their crap in the millions.
You really need to write a far better and more secure script.


 6:34 pm on Dec 14, 2009 (gmt 0)

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 anything@example.com, 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.


 9:09 am on Jan 16, 2010 (gmt 0)

Thanks guys - yes I know it's canned but the problem is that no matter which email address I use, the message does not get sent. NetSol support is useless. I am reading a book on Perl and PHP so I can decode the prob but so far, no luck.

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?


 2:55 pm on Jan 16, 2010 (gmt 0)

Sounds like your code is fine. Think there is email issues here. Checked your spam folder?


 4:04 pm on Jan 16, 2010 (gmt 0)

Yea, a thousand times. I sure wish it was that easy. It won't come through no matter which email I plug in, and it's not to be found in a spam folder either.


 5:06 am on Jan 18, 2010 (gmt 0)

do you have access to your error logs. it possible there may be something in there to let you know why the mail is not sent.

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved