Obrigado Diogo,
I'm going to use SendMailTransformer instead! :)

Thanks..
Rui

On Wed, 2007-05-16 at 10:01 +0100, Diogo Matos wrote:
> Hi Rui,
> 
> There is a bug in the the org.apache.cocoon.mail.MailMessageSender
> class. I didn't have time (and have no idea how) to change the cocoon
> source code. 
> 
> Just change the from 
>     public void setBodyURL(String url, String type) { 
>         if (body != null) {
>             this.body = new Body(url, type, true);
>         }
>     }
> 
> To 
>     public void setBodyURL(String url, String type) { 
>         if (body == null) {
>             this.body = new Body(url, type, true);
>         }
>     }
> 
> Hope this helps (Boa Sorte)
> Diogo Matos 
> 
> 
> On 5/15/07, Rui Alberto <[EMAIL PROTECTED]> wrote:
>         Hi,
>         I'm trying to send an email using Sendmail action. Everything
>         works fine
>         if body message is set using parameter "body". If body message
>         is set as
>         an URL specifying the source of the text body of the email
>         (using src 
>         parameter), the message is not sent.
>         
>         I'm using cocoon-2.1.10. I also replaced geronimo-* by
>         mail.jar and
>         activation.jar.
>         
>         sitemap:
>         <map:act type="sendmail">
>           <map:parameter name="from" value=" [EMAIL PROTECTED]"/>
>           <map:parameter name="to" value="[EMAIL PROTECTED]"/>
>           <map:parameter name="subject" value="message subject"/> 
>           <map:parameter name="src" value="cocoon:/target_name"/>
>           <map:parameter name="srcMimeType" value="text/plain"/>
>         ...
>         
>         Any idea what may be wrong?
>         
>         Rui
>         
>         strack trace:
>         ===========
>         javax.mail.SendFailedException: Sending failed;
>           nested exception is:
>                 javax.mail.MessagingException: IOException while
>         sending
>         message;
>           nested exception is: 
>                 java.io.IOException: No content
>                 at javax.mail.Transport.send0(Transport.java:219)
>                 at javax.mail.Transport.send(Transport.java:81)
>         ...
>         
>         
>         
>         --------------------------------------------------------------------- 
>         To unsubscribe, e-mail: [EMAIL PROTECTED]
>         For additional commands, e-mail: [EMAIL PROTECTED]
>         
> 


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

Reply via email to