cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vaduvoiu Tiberiu <vaduvoiut...@yahoo.com>
Subject Re: cocoon send mail problem
Date Wed, 18 Jul 2007 09:01:10 GMT
i copyed the wrong code...first of all, I don't even use a form...I mean I have a form that
looks like this"

<table width="800" border="1">
<form method="get" action="maaail.ht">
 <tr><td>Name</td><td><input name="name" type="text" value="Testare"/></td></tr>
 <tr><td>Subiect</td><td><input name="subject" type="text" value="Subiect
test"/></td></tr>
 <tr><td rowspan="2"><input name="submit" type="submit" value="Submit" /></td></tr>
</form>
</table>


but I don't pass the parameters. First I tried to use static text to see if it works.i have
a simp,e match pattern:

<map:match pattern="*/*/maaail">
  <map:act type="sendmail">
    <map:parameter name="from" value="cocoon@localhost.com"/>
    <map:parameter name="to" value="mymail@yahoo.com"/>
    <map:parameter name="subject" value="subject test"/>
    <map:parameter name="body" value="some text"/>
    <map:generate src="{1}/{2}/maaail/{status}.xml"/>
    <map:serialize type="xml"/>
  </map:act>
</map:match>

so if i'd write mysite.com/folder/folder/maaail/ it should send me an email with to the subject
and body as  subject test and some text. or not?

p.s. I added the lines 
  <map:actions>
     <map:action name="sendmail" logger="sitemap.action.sendmail"
                  src="org.apache.cocoon.acting.Sendmail"/>
  </map:actions>
in map components and
<map:transformer name="sendmail" src="org.apache.cocoon.mail.transformation.SendMailTransformer"/>

in map transformers.





----- Original Message ----
From: Roel Croonenberghs <Roel.Croonenberghs@sofico.be>
To: users@cocoon.apache.org
Sent: Wednesday, July 18, 2007 11:23:38 AM
Subject: Re: cocoon send mail problem


strange, 
you are accessing /x/x/maaail/ and you get an error saying x/x/it/maaail.send 
can you send the your form and the sitemap part here you define your action. 
tnx 



Vaduvoiu Tiberiu <vaduvoiutibi@yahoo.com> 
18/07/2007 10:17 Please respond to
users@cocoon.apache.org

Tousers@cocoon.apache.org 
cc
Subjectcocoon send mail problem







Hi, i'm trying to implement a funcionality to have a form on my site and when the user click
submits it sends a mail to me with the body of the form. I've read this page:
http://jsn-server5.com/cocoon/docs/userdocs/actions/sendmail-action.html
I tried doing the same thing but didn't work. for start I tried something very simple. I created
a math pattern in my sitemap:

<map:match pattern="*/*/maaail.send">
 <map:act type="sendmail">
   <map:parameter name="from" value="cocoon@localhost.com"/>
   <map:parameter name="to" value="mymail@yahoo.com"/>
   <map:parameter name="subject" value="subject test"/>
   <map:parameter name="body" value="some text"/>
   <map:generate src="{1}/{2}/{status}.xml"/>
   <map:serialize type="xml"/>
 </map:act>
</map:match>

I added the actions in components, did everything like the site says, when i access /x/x/maaail/
I get a .ResourceNotFoundException: No pipeline matched request: x/x/it/maaail.send

the mapping is correct because if I write something like 
<map:match pattern="*/*/maaail.send">
 <map:generate src="toolboxhelp.xml" type="newjx"/>
       <map:transform src="transformers/mail.xsl">
       </map:transform>
       <map:transform src="transformers/stripnamespaces.xsl"/>
       <map:serialize type="xhtml"/>
     </map:match>  

then it works....so what am I doing wrong? can anybody point me to some examples on how it
should be done? 10x.



____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
Mime
View raw message