It looks like the SendmailAction doesn't support it [1]. The 
SendmailTransformer does.

Regards,


Jasha


[1] 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/SendmailAction.html
[2] 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/mail/transformation/SendMailTransformer.html

-----Original Message-----
From:   Rui Alberto [mailto:[EMAIL PROTECTED]
Sent:   Tue 5/15/2007 9:45 PM
To:     [email protected]
Cc:     
Subject:        Sendmail action: body message using src parameter

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]




<<winmail.dat>>

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

Reply via email to