Jump to content

Form Mail Cgi Scripts


Recommended Posts

Guest ThinkDigitally
Posted

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:

 

$mailprog = '/usr/lib/sendmail -i -t';

 

Im not sure what this host's sendmail server is, so i left it at that.

 

Ive made a contact page on my website : http://www.thinkdigitally.com/contact.html

 

but when i try to use it, i get this:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, webmaster@thinkdigitally.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

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:

 

[Thu Jun  5 15:26:33 2003] [error] [client 24.241.200.142] File does not exist: /home/thinkdi/public_html/500.shtml

[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

[Thu Jun  5 15:25:08 2003] [error] [client 24.241.200.142] File does not exist: /home/thinkdi/public_html/500.shtml

[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

[Thu Jun  5 15:24:22 2003] [error] [client 24.241.200.142] File does not exist: /home/thinkdi/public_html/404.shtml

 

Can anyone help me get this working?

 

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.

 

*beats head on table* :D

Guest ThinkDigitally
Posted

Oh, and here is what my form looks like on the page.

 

><form action="/cgi-bin/formmail.pl" method="POST" enctype="text/plain">
    <input type=hidden name="recipient" value="info@thinkdigitally.com">
    <input type=hidden name="redirect" value="http://www.thinkdigitally.com/thankyou.html">
               <table width="80%" border="0" cellspacing="0" cellpadding="2">
                 <tr> 
                   <td width="35%"> <div align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><b>Name:</b></font></div></td>
                   <td width="65%"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
                     <input type="text" name="realname" size="15">
                     </font></td>
                 </tr>
                 <tr> 
                   <td width="35%"> <div align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><b>Email:</b></font></div></td>
                   <td width="65%"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> 
                     <input type="text" name="email" size="20">
                     </font></td>
                 </tr>
                 <tr> 
                   <td width="35%" valign="top"> <div align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><strong>Phone:</strong></font></div></td>
                   <td width="65%"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
                     <input type="text" name="phone" size="20">
                     </font></td>
                 </tr>
                 <tr> 
                   <td width="35%" align="right"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><b>Comment:</b></font></td>
                   <td width="65%"> <font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
                     <textarea name="comment" cols="25" wrap="virtual" rows="3"></textarea>
                     </font></td>
                 </tr>
                 <tr> 
                   <td width="35%"> </td>
                   <td width="65%"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
                     <input type="submit" name="Submit" value="Submit">
                     <input type="reset" name="reset" value="Reset">
                     <input type=hidden name="env_report" value="REMOTE_HOST, REMOTE_ADDR">
                     </font></td>
                 </tr>
                 <tr>
                   <td> </td>
                   <td> </td>
                 </tr>
               </table>
             </form>

Posted

ThinkDigitally:

 

This script (Matt's FormMail) has serious security flaws is not allowed on any TCH servers.

 

I will get Head Guru to confirm this. As for an alternative, review these:

 

this

 

and this

 

Hey Jack.... didn't you put a cookbook version of this up... I could not find it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...