PDA

View Full Version : Cgi Send mail


stevan
01-04-2005, 04:50 AM
I was using this script on my old provider but will not work on my new one Is there another script that i can use ???


<form action="http://HAD ADRESS HERE /cgi-bin/nmail.pl" method="post" name="quote" id="quote" onSubmit="YY_checkform('quote','name','#q','0','Field \'name\' is not valid.','emailadress','S','2','Field \'emailadress\' is not valid.','phone ','#q','0','Field \'phone \' is not valid.','cruiseline','#q','1','Field \'cruiseline\' is not valid.','destination','#q','1','Field \'destination\' is not valid.','lenght','#q','1','Field \'lenght\' is not valid.','cabinstyle','#q','1','Field \'cabinstyle\' is not valid.','adults','#q','1','Field \'adults\' is not valid.','day','#q','1','Field \'day\' is not valid.','year','#q','1','Field \'year\' is not valid.','depart port','#q','1','Field \'depart port\' is not valid.');return document.MM_returnValue">
<input type=hidden name="redir" value="http://www.cruisewarehouse.cc/thanks.html">
<input type=hidden name="to" value="Quote@cruisewarehouse.cc">


THXS STEVE

mlseim
01-05-2005, 12:00 AM
What you are posting is not a script, it's the HTML form that
"calls" a Perl script ... the script is called: nmail.pl

You need to have the script "nmail.pl" uploaded, configured and installed
in your CGI-BIN on your current web server.

The form you posted then needs to be directed to your script.

You can search around the internet for the original Perl script (nmail.pl),
or find a different one. A different script will require different variables
from your form. You might want to search Google for a tutorial on
email forms.

stevan
01-05-2005, 02:36 AM
I can not find that script anywhere DO you know of one ?? FOr some reason I am not finding what i need

THXS STEVE

mlseim
01-05-2005, 03:30 AM
By the looks of the HTML form, there is quite a series of values that
need to be sent and processed. What exactly do you want the script
to do? There are simple form/email scripts and there is the possiblity of
making a script do more complex things with the information from the
form.

Do you have the form on a webpage now? .... if so, can you give us
the link. If I see the actual webpage, I might have some better ideas
for you.

By looking at your post, I was able to find this site ...
Is this where you are getting your from from, or are you creating
a new form with a new webhost?
http://www.cruisewarehouse.cc/quote.html

Also, some form/email CGI scripts do no error checking. It might be
harder to find a script that checks each of your specific variables.
Again, you might end up needing to custom create your own.