[Xitami] MAILTO as CGI app! Please, please help.
Marc Doigny
xitami@lists.xitami.org
Sat, 22 Sep 2001 10:28:17 +0200
--=====================_85991916==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
I'm not an expert on Xitami and i've never used the mailto extension, but
i'll try to help...
At 19:26 21/09/01, you wrote:
>
>
>I have found and downloaded the MAILTO (v1.6) program from the Xitami
>website and am having no small amount of trouble using it as a CGI app. I
>have pasted the contents of the CFG file and the HTML FORM code that I am
>utilising. I wonder if somebody could please tell me if there is anything
>wrong in either. I have read and re-read the readme txt file but to no
>avail. I fear I must be missing something. I have included more details below:
>
>
>
>When trying to run MAILTO as a CGI app and utilise it from within the FORM
>action field on my HTML pages it simply displays its command line
>arguments text output, within the HTML target frame. No mail gets sent. It
>seems it is being successfully accessed as a CGI app but instead of
>sending mail it just throws back the command line arguments instead.
>Seems that your cgi program is not executed properly.
Maybe it send the mail to the html output file instead.
In addition, is there any way to get MAILTO to redirect the browser to a
specific web page/URL after successful form submission (rather than have
the entire page code included in the CFG file)?
There a at least two possibilities:
- with javascript you can use a onSubmit="window.location.href=..."
- instead of generating a html page, you can send a Location:
http://www.hdhdshsdhds-statement with two CRLF's
and your client's browser will load that page.
A sendmail is a rather simple program, it only has to talk to a smtp server...
Marc
--=====================_85991916==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
I'm not an expert on Xitami and i've never used the mailto extension, but
i'll try to help...<br>
<br>
<br>
At 19:26 21/09/01, you wrote:<br>
<blockquote type=cite class=cite cite><font face="arial" size=2> <br>
</font><br>
<font face="arial" size=2>I have found and downloaded the MAILTO (v1.6)
program from the Xitami website and am having no small amount of trouble
using it as a CGI app. I have pasted the contents of the CFG file and the
HTML FORM code that I am utilising. I wonder if somebody could please
tell me if there is anything wrong in either. I have read and re-read the
readme txt file but to no avail. I fear I must be missing something. I
have included more details below:<br>
</font><br>
<font face="arial" size=2> <br>
</font><br>
<font face="arial" size=2>When trying to run MAILTO as a CGI app and
utilise it from within the FORM action field on my HTML pages it simply
displays its command line arguments text output, within the HTML target
frame. No mail gets sent. It seems it is being successfully accessed as a
CGI app but instead of sending mail it just throws back the command line
arguments instead.<br>
</font></blockquote><br>
<br>
<br>
<blockquote type=cite class=cite cite>Seems that your cgi program is not
executed properly.</blockquote>Maybe it send the mail to the html output
file instead.<br>
<br>
<font face="arial" size=2>In addition, is there any way to get MAILTO to
redirect the browser to a specific web page/URL after successful form
submission (rather than have the entire page code included in the CFG
file)?<br>
<br>
</font>There a at least two possibilities:<br>
- with javascript you can use a
onSubmit="window.location.href=..."<br>
- instead of generating a html page, you can send a
Location:
<a href="http://www.hdhdshsdhds-statement/" eudora="autourl">http://www.hdhdshsdhds-statement</a>
with two CRLF's<br>
and your client's browser will load that page.<br>
<br>
A sendmail is a rather simple program, it only has to talk to a smtp server...<br>
<br>
Marc<br>
</html>
--=====================_85991916==_.ALT--