CGI eMail problems

ansultd

New Member
Messages
16
Reaction score
0
Points
0
I am having some trouble with getting CGI eMail to work for me. I am new to cgi, as I have tended to use ASP Mail in the past. I am just wondering if I can get a bit of guidance on this.....

I need help with the following:

1) Where should the "mail.txt" file reside?
- I just put it in my cgi-bin folder for my sites home
- If I try to navigate to it, I get an "Internal Server Error"
(http://www.aj-web-design.com/cgi-bin/ContactMail.txt)
I was under the impression that I should be able to see the text file
- Is this supposed to go under a different folder that I create (i.e.: cgiemail)?
2) What do I use as the action on my HTML form?

I tried to follow the posted instructions (http://web.mit.edu/wwwdev/cgiemail/user.html), but could not get past these issues above.

Thank you for your help on this!
 
Last edited:

woiwky

New Member
Messages
390
Reaction score
0
Points
0
I've never used cgiemail, but I believe that you first need to move your email text file out of the cgi-bin directory to avoid that 500 error. As for the action of the form, it depends on where you put that file. For example, if you put it in a directory like 'public_html/email/' I think the action would be: "http://www.aj-web-design.com/cgi-bin/cgiemail/email/ContactMail.txt".
 

ansultd

New Member
Messages
16
Reaction score
0
Points
0
I tried that also .... So long as I know the cgi script name (cgi-bin/cgiemail, cgi-bin/cgiecho, etc.), I think I could get it going.....

I put the ContactMail.txt file in the script folder
URL: http://www.aj-web-design.com/script/ContactMail.txt

Then I set the action on the form to be http://www.aj-web-design.com/cgi-bin/cgiemail/script/ContactMail.txt

I get the following error:
Not Found

The requested URL /cgi-bin/cgiemail/script/ContactMail.txt was not found on this server.

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

ansultd

New Member
Messages
16
Reaction score
0
Points
0
I am just going by what it says on the C-Panel. It states in the CGI Center that ..."The following CGI Scripts are pre-installed and ready to use on your account:"

CGI email is one of the components under the list.....

CGI email
CGI Email takes the input of an HTML form and converts it to an email format defined by the author of the form.

hmmmmm Maybe it needs configuring or something....
 

pasacom

New Member
Messages
53
Reaction score
0
Points
0
Set permissions on the files you want to be visible on the internet to 755.

After that, the 500 server error should go away.
 
Top