Form Mail Cgi Scripts

liunx

Guest
Ok, i am trying desperately to get this form mail to work. I got it from Matt's script archive, and configured the formmail.pl exactly how the instructions said to, with one exception, this line:<br /><br />$mailprog = '/usr/lib/sendmail -i -t'; <br /><br />Im not sure what this host's sendmail server is, so i left it at that.<br /><br />Ive made a contact page on my website : <a href="http://www.thinkdigitally.com/contact.html" target="_blank">http://www.thinkdigitally.com/contact.html</a><br /><br />but when i try to use it, i get this:<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Internal Server Error<br />The server encountered an internal error or misconfiguration and was unable to complete your request.<br /><br />Please contact the server administrator, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> and inform them of the time the error occurred, and anything you might have done that may have caused the error.<br /><br />More information about this error may be available in the server error log.<br /><br />Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.<!--QuoteEnd--></div><!--QuoteEEnd-->Additionally, I checked my error logs, which i cant understand, (i know, im an indiot) so i'll post the part of the log here:<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->[Thu Jun  5 15:26:33 2003] [error] [client 24.241.200.142] File does not exist: /home/thinkdi/public_html/500.shtml<br />[Thu Jun  5 15:26:33 2003] [error] [client 24.241.200.142] Premature end of script headers: /home/thinkdi/public_html/cgi-bin/formmail.pl<br />[Thu Jun  5 15:25:08 2003] [error] [client 24.241.200.142] File does not exist: /home/thinkdi/public_html/500.shtml<br />[Thu Jun  5 15:25:08 2003] [error] [client 24.241.200.142] Premature end of script headers: /home/thinkdi/public_html/cgi-bin/formmail.pl<br />[Thu Jun  5 15:24:22 2003] [error] [client 24.241.200.142] File does not exist: /home/thinkdi/public_html/404.shtml<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Can anyone help me get this working?<br /><br />All i want is a contact page that someone can enter in thier Name, Email, Phone, and a comment; and i want it to send that info to my email address. <br /><br />*beats head on table* <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /><!--content-->
Oh, and here is what my form looks like on the page.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><form action="/cgi-bin/formmail.pl" method="POST" enctype="text/plain"><br />     <input type=hidden name="recipient" value="[email protected]"><br />     <input type=hidden name="redirect" value="http://www.thinkdigitally.com/thankyou.html"><br />                <table width="80%" border="0" cellspacing="0" cellpadding="2"><br />                  <tr> <br />                    <td width="35%"> <div align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><b>Name:</b></font></div></td><br />                    <td width="65%"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> <br />                      <input type="text" name="realname" size="15"><br />                      </font></td><br />                  </tr><br />                  <tr> <br />                    <td width="35%"> <div align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><b>Email:</b></font></div></td><br />                    <td width="65%"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> <br />                      <input type="text" name="email" size="20"><br />                      </font></td><br />                  </tr><br />                  <tr> <br />                    <td width="35%" valign="top"> <div align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><strong>Phone:</strong></font></div></td><br />                    <td width="65%"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><br />                      <input type="text" name="phone" size="20"><br />                      </font></td><br />                  </tr><br />                  <tr> <br />                    <td width="35%" align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><b>Comment:</b></font></td><br />                    <td width="65%"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><br />                      <textarea name="comment" cols="25" wrap="virtual" rows="3"></textarea><br />                      </font></td><br />                  </tr><br />                  <tr> <br />                    <td width="35%"> </td><br />                    <td width="65%"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><br />                      <input type="submit" name="Submit" value="Submit"><br />                      <input type="reset" name="reset" value="Reset"><br />                      <input type=hidden name="env_report" value="REMOTE_HOST, REMOTE_ADDR"><br />                      </font></td><br />                  </tr><br />                  <tr><br />                    <td> </td><br />                    <td> </td><br />                  </tr><br />                </table><br />              </form><!--c2--></div><!--ec2--><!--content-->
ThinkDigitally:<br /><br />This script (Matt's FormMail) has serious security flaws is not allowed on any TCH servers. <br /><br />I will get Head Guru to confirm this. As for an alternative, review these:<br /><br /><a href="http://www.totalchoicehosting.com/forums/index.php?act=ST&f=19&t=2163" target="_blank">this</a><br /><br /><a href="http://www.totalchoicehosting.com/forums/index.php?act=ST&f=19&t=2348" target="_blank">and this</a><br /><br />Hey Jack.... didn't you put a cookbook version of this up... I could not find it.<!--content-->
Ok, i went to those links and saw the php mail thing that you put there<br /><br /><a href="http://www.totalchoicehosting.com/forums/index.php?act=ST&f=19&t=2163&st=15" target="_blank">http://www.totalchoicehosting.com/forums/i...19&t=2163&st=15</a><br /><br />and im using it, and it works! <br /><br />Thanks! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /><!--content-->
 
Back
Top