[opencms-dev] mailform problems

Arian Abrahantes Quintana Arian.Abrahantes.Quintana at cern.ch
Thu May 27 15:28:01 CEST 2004


dear jose',

thanks a lot. You were of great help. My problem was whith pointing the form action which became clear after I did what you told me to.

best regards,

arian




-----Original Message-----
From:	opencms-dev-admin at opencms.org on behalf of Jose Antonio Morillas Sanchez
Sent:	Thu 5/27/2004 1:51 PM
To:	opencms-dev at opencms.org
Cc:	
Subject:	Re: [opencms-dev] mailform problems

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


_______________________________________________
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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4204 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040527/69a3ef17/attachment.bin>


More information about the opencms-dev mailing list