Jump to content
xisto Community
Sign in to follow this  
Animator

Cgiemail / Cgiecho Sends only blank message

Recommended Posts

I'm trying to get FormMail / cgiemail working. To be frank, it's my real reason for using Xisto. I dropped my previous host because I need this feature. I've been working through http://web.mit.edu/wwwdev/cgiemail/user.html for a few hours trying to get it to work.

 

In my /home/lancer/public_html I have form_experiment.html (the page to send from) and mytemplate.txt

(click the above two mentioned files to visit them in the flesh :mellow:)

 

For now, I am not actually trying to email anything, just echo as in the instructions at http://web.mit.edu/wwwdev/cgiemail/user.html

 

Here is my page...

 

mytemplate.txt

To: not.my.real.email@antispam.comSubject: Email Form thingieContact address?	[email]What do you want to tell me?	[infobox]

form_experiment.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://forums.xisto.com/no_longer_exists/ Mail Experiment</title><meta name="generator" content="Bluefish 1.0.7"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"></head><body><FORM METHOD="POST" ACTION="cgi-bin/cgiecho/mytemplate.txt" NAME="myform">Please type in your contact address... <INPUT NAME="email"><p>What do you want to tell me? <INPUT NAME="infobox"><p><INPUT TYPE="submit" value="Send e-mail"></FORM><p>Thanks. Have a nice day.</body></html>

On sending a message, I get the report...

Processed form looks like this:

cgiemail 1.6


...and no actual fields showing. Why? I have checked the spelling against my template and everything. Can someone please tell me where I have gone wrong?

Share this post


Link to post
Share on other sites

Can someone please look carefully into this for me?

 

I have been going mad over the forums etc searching and trying all the things people say to do. I have three similar attempts now (my initial plus results of following two different tutorials on the boards)...

 

http://forums.xisto.com/no_longer_exists/

with http://forums.xisto.com/no_longer_exists/

 

http://forums.xisto.com/no_longer_exists/

with http://forums.xisto.com/no_longer_exists/

 

http://forums.xisto.com/no_longer_exists/

with http://forums.xisto.com/no_longer_exists/

 

 

...they all have the same problem. Entries get processed, but all result in a blank form like this...

Processed form looks like this:

------------------------------

cgiemail 1.6

Please help - I really need this service up and running.

 

Lancer.

Edited by Lancer (see edit history)

Share this post


Link to post
Share on other sites

Lance,

I'm sure you found my post on Xisto regarding CGI mail for all free web hosting members.

http://forums.xisto.com/topic/25640-topic/?findpost=170547

But as far as I know you have to place full URL so that

<FORM METHOD="POST" ACTION="http://subdomain.astahost.com/cgi-bin/cgiecho/mytemplate.txt" NAME="myform">



Try that and see if it works.

Also, why not send it by replacing 'cgiecho' with 'cgimail' And be sure to place both HTML and TXT files in the same directory in order to work.

Share this post


Link to post
Share on other sites

Hey there.Yes - I did see that page, it was what I had for example3 (above). I just had to edit the clickable hyperlink because all three examples here were leading to my first page.For some reason - now it's working(!!!) But I never changed anything. Did you fix it behind the scenes?If so, thanks. Moving on to using the email instead of the echo.

Share this post


Link to post
Share on other sites

As per PM, I'm glad your situation was resolved. I had nothing to do with it :mellow: Probably OpaQue got to it first.CGImail is good. But try looking into a simple submit form with PHP mail(). You can search the web for simple examples. Unlike CGImail for Xisto, PHP mail() is much more customizable and can switch which email to deliver in a blink.PHP mail() can be formatted to deliver HTML email (resulting in nice table and colors).Good luck.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.