| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read | ![]() |
|
||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I can't figure out whats wrong here. I'm using formmail.php and a simple contact form. I can test it and it directs me to the default formmail.php page saying that the email was sent.
Here are my issues. I'm not receiving the emails and the form is supposed to redirect me to a custom thank_you.htm page. This is a server I just recently got and I never had these issues before, so i am completely clueless how to fix this. |
|
|||
|
May I know the IP address of your server ?
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting AIM : webredback || msn : andrew @ webhosting.uk.com Toll Free : 0808 262 0855 |
|
|||
|
what about matt's formmail (perl) I haven't used it before, would i be able to switch to it without any issues? do i need to run it on the server as .pl or as .cgi? I'm kinda confused about where to put it also, does it go in the cgi-bin?
|
|
|||
|
Hi, I used to use Matt's formmail, yes it goes in the cgi-bin with the ext .pl
If you have any problems with it change ext to .cgi Should work without any problems as long as you replace the relevant details on the form (like the email addy to return the form to) |
|
|||
|
I think that may be another issue of mine.
The .htm page that the form is on doesn't not contain the recipient email address, I'm using the formmail script to do that and the subject line. The only thing in the form itself is the redirect and the appropriate fields. Does matt's formmail send emails as they were sent from the form submitter? I'll try get it up and running this weekend and see if I can get it working. Thanks for the input! |
|
|||
|
As far as I remember, yes the recipient addy is set in the formmail file.
The email you receive is a basic email, with textbox name followed by the users input. I don't think you will have any problems with it, give it a go. I think I remember that you also need to set the web addy of the site that is allowed to use the formmail.pl. I can't remember if it is compulsary but it is good practice to add the addy, as it helps stop spammers using your formmail script without your knowledge. |
|
|||
|
Hi,
if you problem isn't related to permissions then I can only see that you have a problem with: PHP Code:
Have you also tried changing the extention to .cgi ? As mentioned, I recall having this problem originally, and it was due to permissions and the fact that I hadn't followed the instructions above correctly. |
|
|||
|
My form is just a basic contact form.
HTML Code:
<form action="cgi-bin/FormMail.pl" method="POST" enctype="multipart/form-data" name="mydomain_contact" id="mydomain_contact"> <input type="hidden" value="http://www.mydomain.com/thank_you.htm" name="redirect" id="redirect"> <input type="hidden" value="*mydomain.com Contact Form*" name="subject"> <input type="hidden" name="require" value="email,phone_no"> <input type="hidden" name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT"> <input type="hidden" name="recipient" value="me@mydomain.com"> <input name="name" type="text"> <input name="email" type="text"> <input name="phone_no" type="text"> <textarea name="textarea" cols="10" rows="10" style="width:180px; height:95px; overflow:auto"></textarea> <input name="Submit" type="submit" id="Submit" value="Submit"> Last edited by v3locity; 04-17-2007 at 07:48 PM. |
|
|||
|
and I take it that your form is in the root of your public_html folder?
If so and you chmod to 777 (from 757) then I can't understand why you have a problem. Your form seems fine and you have the recipients hidden field. |
|
|||
|
I just set formmail.pl and .cgi as chmod 777 just to see I set the form as 777 as well. same problem.
However, I did some digging and I think the error may be in formmail.pl [Tue Apr 17 11:23:22 2007] [error] [client 65.23.106.241] Premature end of script headers: /home/escortca/public_html/cgi-bin/FormMail.pl since i changed it to 777 it also says that it is writable, i guess i can fix that by changing it back to 757. I just checked the script, its the same as the copy of formmail.pl i downloaded. Last edited by v3locity; 04-17-2007 at 08:55 PM. |
|
|||
|
ah, what's at the top of the formmail script?
#!/usr/bin/perl print "Content-type: text/plain\n\n"; if not try above. Also chmod cgi-bin and formail.pl to 755 and try that. good luck ps...sorry, i didn' realise that these days setting permissions to 777 can cause some browsers to reject the request Last edited by jon123; 04-17-2007 at 09:03 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|