cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Stevens <insomniacpeng...@googlemail.com>
Subject Re: Cocoon 2.2 and sendmail
Date Mon, 09 May 2011 08:02:41 GMT
2011/5/9 Grégory Roche <webmaster@polymorphisme.org>:
> I'm trying send email with Cocoon 2.2.
>
...
> and in my sitemap.xmap, I have my tramsformer sendmail :
>
>      <map:transformer name="sendmail"
>         src="org.apache.cocoon.mail.transformation.SendMailTransformer"/>
>
> and a pipeline for my test :
>
>       <map:match pattern="sendmail">
>         <map:generate src="xdocs/sendmail.xml"/>
>         <map:transform src="stylesheets/sendmail.xsl">
>           <map:parameter name="name"
> value="{request-param:name}"/>
>           <map:parameter name="email" value="{request-param:email}"/>
>           <map:parameter name="id" value="{session:id}"/>
>         </map:transform>
>         <map:serialize type="xml"/>
>       </map:match>
>
> I'm sure that my params are good :)
>
> But then I send an email, I have nothing in my email box !!!

Maybe I'm missing something here, but you don't appear to have called
the sendmail transformer - the pipeline you quoted only has a
generator, xslt transformation and xml serialiser...?


Andy
-- 
http://pseudoq.sourceforge.net/

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


Mime
View raw message