PDA

View Full Version : formmail server problem



scullyb
07-04-2005, 10:19 AM
I have a site billscully.com (Never set up or tested forms on main site). I have set up a simple form on a virtual website.

It's located at http://air-xtreme.com/SAMPLE_CART/form.html.

I was told I had to use the main site's cgi-bin/formmail/FormMail.pl file for virtural site form posting.

The simple form code is:
<form action="http://www.billscully.com/cgi-bin/formmail/FormMail.pl" method="post">
<input type=hidden name="recipient" value="namewithheld@yahoo.com">
<p>Email Address:
<input name="Email_Address" type="text">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>

I edited the formmail.pl file in notepad and uploaded it with these settings:

@referers = ('billscully.com','206.130.106.56','air-xtreme.com','airxtreme.com');

@recipients = &fill_recipients('air-xtreme.com','billscully.com','namewithheld@yahoo.c om')

When I submit the form I get an error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, Postmaster@billscully.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.

Any Ideas?

jalal
07-04-2005, 01:01 PM
I edited the formmail.pl file in notepad and uploaded it with these settings:

There is your problem right there: notepad/windows

Notepad has saved the file in WIndows format, you will need it in Unix format for it to work.
If you can shell in to your account (SSH) then there is a scipt there that will convert it to unix format (called 'dos2unix').
Otherwise edit in an editor that understands how to save in Unix format. I don't use Windows, so I can't suggest anything, maybe someone else can.

wildjokerdesign
07-04-2005, 01:19 PM
I use EditPlus (http://www.editplus.com/). Anouther editor you can use is Vim (http://www.vim.org/about.php) which I know many use but I have never used it. It can run on both Unix and Windows but from what I understand it is not as user friendly.