Using Cgiemail

liunx

Guest
I've had a couple of questions in the last week on the cgiemail script listed in the CGI Scripts section of cPanel. I thought it would be good to have a brief description to supplement the docs in helping to use the script on our servers.<br /><br />First of all, when you click on the link you get a Using cgiemail page. I would recommend looking at the information in the links on this page for detailed help in using the program. This script is not actually installed into your directory, however. It is available on all servers in a directory that is linked to all users.<br /><br />In the instructions you will see this line under the Actions explanation:<br /><br /><!--coloro:blue--><span style="color:blue"><!--/coloro-->http://web.mit.edu<!--colorc--></span><!--/colorc--><!--coloro:green--><span style="color:green"><!--/coloro-->/wwwdev/cgiemail/questions3.txt<!--colorc--></span><!--/colorc--><br /><!--coloro:blue--><span style="color:blue"><!--/coloro-->--------Part 1-------- <!--colorc--></span><!--/colorc--><!--coloro:green--><span style="color:green"><!--/coloro-->------------ Part 2 --------------------<!--colorc--></span><!--/colorc--><br /><br />Part 1 is optional but on our servers would be your domain. Part 2 consists of the location of the .txt file so in the example would be a file called questions3.txt in the /wwwdev/cgiemail directory in your public_html directory.<br /><br />In your action you put the script location between these parts and on our servers it would be /cgi-sys/cgiemail. So your action string should include this string:<br /><br /><!--coloro:blue--><span style="color:blue"><!--/coloro-->http://web.mit.edu<!--colorc--></span><!--/colorc--><!--coloro:red--><span style="color:red"><!--/coloro-->/cgi-sys/cgiemail<!--colorc--></span><!--/colorc--><!--coloro:green--><span style="color:green"><!--/coloro-->/wwwdev/cgiemail/questions3.txt<!--colorc--></span><!--/colorc--><br /><br />Here is an example of the html code called questions.html. (Change all the {} to <>)<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><FORM METHOD="POST"<br /> ACTION="http://www.domain.com/cgi-sys/cgiecho/scriptdir/questions3.txt"><br /><br />Your e-mail address: {INPUT NAME="email"}{p}<br />Your name: {INPUT NAME="yourname"}{p}<br />Your quest: {INPUT NAME="quest"}{p}<br />Your favourite colour: {INPUT NAME="colour"}{p}<br />{INPUT TYPE="submit" value="Send e-mail"}<br />{/FORM}<!--QuoteEnd--></div><!--QuoteEEnd-->And here is the questions3.txt file it calls (that would be in a script directory called /scriptdir in your public_html directory:<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->To: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><br />Subject: Questionaire<br /><br />What is your name????????[yourname]<br />What is your question??????鐗
 
Top