Fixed this, the solution is hidden away here:

http://wiki.apache.org/cocoon/SendMailTransformer

Quote:
The SendMailTransformer needs the JavaMail and JavaBeans Activation Framework (JAF) API's from Sun to work. Add them to WEB-INF/lib. Remove geronimo-spec-javamail-1.3.1-rc5.jar and geronimo-spec-activation-1.0.2-rc4.jar from WEB-INF/lib.

Took me a day to find this. Will this be fixed in future versions? If not, is it possible to put it on the main cocoon page as a warning or something.

Kamal Bhatt wrote:
Hi
I have set up a pipeline to send some mail. I check the status of the action, and it says success. However, I do not get the email. Here is the pipeline.

    <map:match pattern="success-pipeline">
       <map:act type="sendmail">
         <map:parameter name="from" value="<invalid email>"/>
         <map:parameter name="to" value="<valid email>"/>
         <map:parameter name="attachments" value=""/>
         <map:parameter name="cc" value=""/>
         <map:parameter name="bcc" value=""/>
         <map:parameter name="subject" value="Hello"/>
         <map:parameter name="body" value="Hello"/>
         <map:generate type="file" src="xml/enquire_success.xml"/>
         <map:transform type="xslt" src="xslt/kamal.xsl">
           <map:parameter name="value" value="{status}"/>
         </map:transform>

         <map:serialize type="html"/>
       </map:act>
    </map:match>

I have removed the emails, but you get the idea. Now, what is curious is that I am using cocoon2.1.7 as well, also with a sendmail action on the same server, but using a different appserver (plain old tomcat). It works fine, sending from the same email address and sending to the same email address. This version of cocoon is 2.1.9 and is running on jboss.

Does anyone know how I can either debug this problem or fix it?

Thanks.



--
Kamal Bhatt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to