cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Simon Mieth)
Subject Re: SendMailTransfomer question
Date Tue, 02 Dec 2003 13:55:53 GMT
Hi Rui,

i tried your example with my enviroment and it works, but i
use postfix as MTA. Maybe there is a problem by sendmail.

On 02 Dec 2003 12:15:44 +0000
"Rui Alberto L." Gonçalves <>

> I'm getting the message in /var/log/maillog:
> Dec  2 11:44:43 localhost sendmail[4960]: hB2BigJP004960:
> localhost.localdomain [] did not issue
> MAIL/EXPN/VRFY/ETRN during connection to MTA

Which version of java-mail you use (1.3 by me)?

> It seems that the connection is established to sendmail,
> but after that the connection is aborted without trying to
> send the email.
> At the end of pipeline I have:
> <html><body></body></html>
> I can't understand the reason of this html tags as the
> result of the pipeline!!

This is done by your browser i think, not by the
cocoon-pipeline. So there is no result from your pipeline

> org.apache.cocoon.acting.Sendmail is working!!
> Rui

Ok, i have found a difference in the Action and Transformer.
The Action use the static method Transport.send(Message)
from javamail and the Transformer use a
Transport.sendMessage(). I'm not sure, becouse it works for
me here. 
>From JAVAMAIL-FAQ: befor sending with do a
Session.saveChanges(), if needed. 

This part is done in the Transformer, only the there is
setting the Message.setRecipients() before sending. 
Maybe you can try to add a saveChanges() in the code before
sending, but i'm not sure if is needed there.


insert at line 525 a "this.smtpMessage.saveChanges();"
before "trans.sendMessage(this.smtpMessage, iaArr);" 

//but this will slow down the process 

and rebuild cocoon and try again. 

This is the point i can see, maybe it helps you.

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message