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="[EMAIL PROTECTED]"/>
<map:parameter name="to" value="[EMAIL PROTECTED]"/>
<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 <[EMAIL PROTECTED]>
To: [email protected]
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 <[EMAIL PROTECTED]>
18/07/2007 10:17 Please respond to
[email protected]
[EMAIL PROTECTED]
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="[EMAIL PROTECTED]"/>
<map:parameter name="to" value="[EMAIL PROTECTED]"/>
<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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC