Hi,
I'm trying send email with Cocoon 2.2.
So, I have in my pom.xml the dependency :
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-mail-impl</artifactId>
<version>1.0.0</version>
</dependency>
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 !!!
So, I can read (on http://cocoon.apache.org/2.2/blocks/mail/1.0/1099_1_1.html)
"NOTE: The SendMailTransformer needs the JavaMail[1] and JavaBeans Activation
Framework (JAF)[2] API's from Sun to work. Add them to WEB-INF/lib. Remove
geronimo-spec-javamail-*.jar and geronimo-spec-activation-*.jar from
WEB-INF/lib."
but I don't have a repertory WEB-INF/lib, I have just a COB-INF and META-INF !
Have you got an idea ? Where can I put my .jar ?
Thanks
G. R.
www.polymorphisme.com
[email protected]
fixe : +33 (0)5.24.07.64.02
port : +33 (0)6.89.54.14.84
Liens:
------
[1] http://java.sun.com/products/javamail/
[2] http://java.sun.com/products/javabeans/glasgow/jaf.html