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 <[EMAIL PROTECTED]> wrote: > I'm getting the message in /var/log/maillog: > > Dec 2 11:44:43 localhost sendmail[4960]: hB2BigJP004960: > localhost.localdomain [127.0.0.1] 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 (empty). > 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. in cocoon-2.1.x/src/blocks/mail/java/org/apache/cocoon/mail/tr ansformation/SendmailTransformer.java 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, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]