inflexions.com: homeFinally got the cocoon part of the sendmail logicsheet
working but now I get an error from java mail:

javax.mail.internet.ParseException

This is the XSP

<?xml version="1.0" encoding="UTF-8"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0";>
 <page>
  <xsp:logic>
  String text =
"Hi, this mail has been send through a web form";
</xsp:logic>
  <sendmail:send-mail>
   <sendmail:from>[EMAIL PROTECTED]</sendmail:from>
   <sendmail:to>[EMAIL PROTECTED]</sendmail:to>
   <sendmail:subject>Cocoon send mail test</sendmail:subject>
   <sendmail:smtphost>mailServerAddress</sendmail:smtphost>
   <sendmail:body>
    <xsp:expr>text</xsp:expr>
   </sendmail:body>
  </sendmail:send-mail>
 </page>
</xsp:page>

I'm using the recently fixed sendmail.xsl, and after getting "An error
occured while sending email." a couple of times I replaced this in
sendmail.xsl

<error type="server">An error occured while sending email.</error>

with

<error type="server"><xsp:expr>_sendmail_exception</xsp:expr></error>

and rebuild cocoon to end up with: "javax.mail.internet.ParseException"

The javamail docs say:

"The exception thrown due to an error in parsing RFC822 or MIME headers"

Which as a simple user doesn't mean much too me.

Thanks in advance.

Perry Molendijk
Inflexion (WA) Pty Ltd
http://www.inflexions.com
[EMAIL PROTECTED]
+61 0401 677 453

©2002 Inflexions (WA) Pty Ltd
IMPORTANT INFORMATION: This message and any files transmitted with it are
confidential and should be read only by those persons to whom it is
addressed. If you have received this message in error, please notify us
immediately by way of reply. Please also destroy and delete the message from
your computer. Any unauthorised form of reproduction of this message is
strictly prohibited. It is the duty of the recipient to virus scan and
otherwise test the information provided before loading onto any computer
system. Inflexions (WA) Pty Ltd does not warrant that the information is
free of a virus or any other defect or error. Inflexions (WA) Pty Ltd is not
liable for the proper and complete transmission of the information contained
in this communication, nor for any delay in its receipt. Any views expressed
in this message are those of the individual sender, except where the sender
specifically states them to be the views of Inflexions (WA) Pty Ltd.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to