cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rui Alberto <rui-l-goncal...@ptinovacao.pt>
Subject Sendmail action: body message using src parameter
Date Tue, 15 May 2007 19:45:35 GMT
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="aa@xxxx.pt"/>
  <map:parameter name="to" value="bb@xxxx.pt"/>
  <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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message