You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by oron ogdan <or...@netada.co.uk> on 2003/09/11 19:54:53 UTC
Some more : error-no object DCH for MIME type multipart/mixed
I thought it was something with the VelocityHtmlEmail code, turns
out it's not a problem with Turbine, I tested with HtmlEmail directly and
get the same results
See the code below, in a stand alone program it works perfect,
inside turbine on tomcat 4.1.27, an exception is thrown, both use the same
jars
javamail 1.3.1, activation 1.0.2, any hints
I suspect it's the some misconfigured jar version that hides somewhere, but
I checked and double checked and all seems in place.
the code :
try
{
HtmlEmail html = new HtmlEmail();
html.setHtmlMsg("<html><body>not bold<b>bold</b></body></html>");
html.setTextMsg("this is some text");
html.addTo("oron.ogdan@netada.co.uk","Oron Ogdan");
html.setFrom("oron.ogdan@netada.co.uk","Oron Ogdan");
html.addReplyTo("oron.ogdan@netada.co.uk","Oron Ogdan");
html.setHostName("mail.btinternet.com");
html.send();
}
catch (MessagingException me)
{
System.err.println("Error semnding :"+me);
me.printStackTrace();
}
output within Tomcat / Turbine:
DEBUG SMTP: Found extension "EXPN", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "HELP", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<or...@netada.co.uk>
250 <or...@netada.co.uk> is syntactically correct
RCPT TO:<or...@netada.co.uk>
250 <or...@netada.co.uk> is syntactically correct
DEBUG SMTP: Verified Addresses
DEBUG SMTP: Oron Ogdan <or...@netada.co.uk>
DATA
354 Enter message, ending with "." on a line by itself
javax.activation.UnsupportedDataTypeException: no
object DCH for MIME type multipart/related;
boundary="----=_Part_0_23710114.1063331040702"
at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
at
javax.activation.DataHandler.writeTo(DataHandler.java:305)
at
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1607)...
=====
fax me@ : +44.(0870).163.8773
www.oron.org
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com