[opencms-dev] mailform problems
Jose Antonio Morillas Sanchez
josea.morillas.ext at juntadeandalucia.es
Thu May 27 13:49:02 CEST 2004
First,
you must fill the fields:
SMTP Server Address: with your SMTP Server
Valid Referers: with the name or IP of the server that will proccess your
form.
Valid Recipients: with the domain of the email where you are going to send
your data.
Then you must declare formmail servlet in web.xml. It is explain in
'OpenCMS_FormMail.txt' mini-documentation. Don't forget restarting your
server. Writting directly this url in you navigator:
http://yourserver/opencms/formmail must generate an error, not a blank page,
if everything is ok.
Finnally, you must create the form. I use this code inside a .jsp page:
<SCRIPT LANGUAGE="JavaScript">
function send(f,url) {
// code for checking data
.....
eval(f+".action=url");
eval(f+".submit()");
}
</SCRIPT>
<form name="MyForm" method="POST">
<INPUT VALUE="<%= email %>" NAME="recipient" TYPE="hidden"/>
<A href="javascript:send('document.MyForm','<%= formmailUrl
%>');"><b>Submit</b></A>
</form>
Hope this helps you.
José Antonio Morillas.
----- Original Message -----
From: "Arian Abrahantes Quintana" <Arian.Abrahantes.Quintana at cern.ch>
To: <opencms-dev at opencms.org>
Sent: Thursday, May 27, 2004 1:17 PM
Subject: [opencms-dev] mailform problems
> Hi all,
>
> This is my second mail on this subject... I don't know if the first mail
reached the list.
>
> I am using OpenCMS 5.0/Tomcat 4.1.29. I downloaded and installed the
formmail package. I followed the docs to complete the installation
procedure. In the administration point, I am supposed to make changes on
JavaMail Service and Security, isn't it?. Well, I made them.
>
> I wrote a single form pointing to formmail.jsp but it didn't work.
Furthermore, I remove the field "recipient" from the form and tried again.
formmail.jsp is supposed to reply to such order with an error page but,
instead, I receive a blank page as in the first test... or any other I
tried... I never get any error page (???)
>
> Questions:
>
> 1- Is there a log file in Opencms to track smtp calls or mail traffic?
>
> 2- Could anybody please give me some hint of how to deal with the mailform
problem?
>
> best regards and TIA,
>
> Arian
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list