Jump to content

Is cgiemail installed?


Recommended Posts

I'm trying to use CGI email to submit information.

 

Here I have a test page:

http://sepero.heliohost.org/test.html

 

When the form is submitted, it goes to 404 Error.

 

 

Here is my template:

http://sepero.heliohost.org/emailtemplate.txt

 

Using either of these addresses as post action seems to result in 404:

http://sepero.heliohost.org/bin/cgiecho/emailtemplate.txt

http://sepero.heliohost.org/usr/bin/cgiech...ailtemplate.txt

 

 

In CPanel under CGI Center, CGI email is listed as a resource. Is it installed? If so, can anyone suggest the proper directory for it, or what I'm doing wrong?

Link to comment
Share on other sites

When you go to your CGI Center you need to click onto the link that says 'CGI email' and it will get installed in your cgi-bin.

 

I've never used a text file in my root directory so I can't say for sure if this is the correct path for the form action or not.

 

<form action="cgi-bin/cgiemail/emailtemplate.txt">

 

Normally you would have your text file inside of a sub directory and then the form action would look like this:

 

<form action="cgi-bin/cgiemail/SUB-DIR/emailtemplate.txt">

 

 

 

Link to comment
Share on other sites

When you go to your CGI Center you need to click onto the link that says 'CGI email' and it will get installed in your cgi-bin.

When I click on it, it takes me here:

http://web.mit.edu/wwwdev/cgiemail/nopath.html

 

I'm thinking it should be installed in the system if it exists, rather than in my home directory. The default location appears to be /bin/cgiecho

 

 

Ah no, I see you're right byron. Thank you.

 

It appears in my local dir www/cgi-bin/cgiecho and www/cgi-bin/cgiemail

Link to comment
Share on other sites

When your finished testing you need to change

cgiecho

to

cgiemail

 

http://sepero.heliohost.org/cgi-bin/cgiema...ailtemplate.txt

 

and you can use relative urls for the form action if you want.

 

cgi-bin/cgiemail/emailtemplate.txt

 

 

 

 

Here's something you might want to add to your contact page right before your form closing tag. It redirects the person to a thank you page after they've clicked submit.

 

<input type="hidden" name="success" value="http://your_site.heliohost.org/thankyou.html">

 

 

 

Link to comment
Share on other sites

Join the conversation

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

Guest
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...