[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

Formmail CGI script

im having difficulty setting up a form using the formmail cgi script. if you arent familiar with it check it out here [url]http://www.scriptarchive.com[/url] .
currently i have web services running. we are a subdomain of a school network. all mail is handled by them at the district office. i want the results of the form to be mailed to me but i keep getting a bad recipients message.
example

main web server           district.net
my web server name   school.district.net

mail server            mail.district.net

is this not working because i dont handle mail on the same server the form is coming from? i've tried different variables with no success.


thanks
0
snowwwman
Asked:
snowwwman
2 Solutions
 
snowwwmanAuthor Commented:
i dont understand the point system but i only have 75 points and im giving away 50 for this question.
0
 
markhoyCommented:
What is or isn't happening? any error messages? what does the log file say? Is CGI set up properly? If you are using the formmail.pl from Matts Archive, try the one from here instead: http://nms-cgi.sourceforge.net/
0
 
snowwwmanAuthor Commented:
it isnt sending me the form submission. when i try to submit the form it gives me  an internal server error. it says that it could be misconfigured. the log says it was aborted due to compilation errors and that there was a premature end of script headers. CGI is enabled. does it have anything to do with the form being sent to account on another server?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
markhoyCommented:
Can you comment out the sendmail part and make it write the content to the screen instead ie print "here is the email";
# then print the email

this will debug any errors in the script before looking at the email (SMTP part) as it sounds like the script is falling over way before it gets to the email part.

OR post it here.
0
 
TintinCommented:
To reiterate markhov's comment.  Throw away your current Formmail.  It's way too ugly and insecure.

Use the 100% compatible version (minus the security holes) from http://nms-cgi.sourceforge.net/
0
 
jmcgOwnerCommented:
Nothing has happened on this question in over 7 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
split points between markhoy [25 pts] and Tintin [25 pts]

Please post any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now