You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Steve Short <St...@PostX.com> on 2002/04/05 01:15:24 UTC

RE: FW: problem sending email, body in Rich Text Format / Plain T ext

I tried this out for myself, 'cos I was slightly concerned about it and have
been unable to reproduce the problem.  Do you have any more info about your
configuration that might help narrow this down and resolve it?

Steve

-----Original Message-----
From: Serge Knystautas [mailto:sergek@lokitech.com]
Sent: Wednesday, April 03, 2002 10:59 AM
To: James Developers List
Subject: Re: FW: problem sending email, body in Rich Text Format / Plain
Text


Kishore,

This is a bug in JavaMail.  I see this error message occassionally in my 
logs but never had the email source that was causing it.  You'll have to 
follow-up with Sun on this one as we're rather dependent on their 
library for MIME parsing and writing.  I think JavaMail 1.3 is about to 
come out (or maybe already has) so you could test that it could read and 
write that message.  Once JavaMail 1.3 FCS is out, we'll need to upgrade 
James to use this new version of JavaMail, irregardless.
-- 
Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/
Kishore Metla wrote:
> Hi,
> 
> I did not get any answer and this is kind of important. Can someone please
> help me. 
> 
> Thanks in advance
> -Kishore
> 
> -----Original Message-----
> From: Kishore Metla [mailto:KMetla@PALMERHILL.com]
> Sent: Monday, April 01, 2002 11:16 AM
> To: 'james-user@jakarta.apache.org'
> Subject: problem sending email, body in Rich Text Format / Plain Text
> 
> 
> 
> Hi,
> 
> I have James set up. I have a problem when sending an email using
Microsoft
> Outlook 2000 Plain Text or Rich Text to the James with an attachment but
> with no message in the body.
> 
> I am choosing the format of the mail in the Outlook by going to Tools >>
> Options >> Mail Format >> 'Choose a format for outgoing mail ...'  and
> choosing the option as 2 or 3 from the available as listed below 
> 1. HTML
> 2. Microsoft Outlook Rich Text
> 3. Plain Text
> 
> When I send an email to the James Server to categorize, choosing HTML
(with
> or without a message in the body) it works fine. If I send an email
choosing
> either Plain Text or Rich Text with some message in the body it works
fine.
> But If no message in the body (sending just an attachment) it fails
throwing
> an exception (see below).
>
----------------------------------------------------------------------------
>
----------------------------------------------------------------------------
> --------------------
> javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
> application/octet-stream; 
> name="example.PDF"
> at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)

> at javax.activation.DataHandler.writeTo(DataHandler.java:305) 
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
> at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
> at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68)
> at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
> at javax.activation.DataHandler.writeTo(DataHandler.java:305)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1503)
> at org.apache.james.core.MailImpl.writeMessageTo(MailImpl.java:198)
> at
>
org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMailReposit
> ory.java:98)
> at org.apache.james.James.sendMail(James.java:298)
> at org.apache.james.James.sendMail(James.java:278)
> at org.apache.james.James.sendMail(James.java:270)
> at
>
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
> .java:167)
> at
>
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:152)
> at
>
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
> 166)
> at
>
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
> at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
> Exception in processor <local>
> javax.mail.MessagingException: Exception spooling message: Exception
caught
> while storing Message Container: javax.activ
> ation.UnsupportedDataTypeException: no object DCH for MIME type
> application/octet-stream;
> name="example.PDF"
> at org.apache.james.James.sendMail(James.java:304)
> at org.apache.james.James.sendMail(James.java:278)
> at org.apache.james.James.sendMail(James.java:270)
> at
>
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
> .java:167)
> at
>
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:152)
> at
>
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
> 166)
> at
>
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:142)
> at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
>
----------------------------------------------------------------------------
>
----------------------------------------------------------------------------
> --------------------
> 
> For your information, I tried to check what it is doing. For the email
sent
> in HTML (successful case),
> 
> ..........
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2653.19)
> Content-Type: multipart/mixed;
> 	boundary="----_=_NextPart_000_01C1D763.B43A2C50"
> Status:   
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
> ------_=_NextPart_000_01C1D763.B43A2C50
> Content-Type: multipart/alternative;
> 	boundary="----_=_NextPart_001_01C1D763.B43A2C50"
> ------_=_NextPart_001_01C1D763.B43A2C50
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> ------_=_NextPart_001_01C1D763.B43A2C50
> Content-Type: text/html;
> 	charset="iso-8859-1"
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
> <BODY>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>
> ------_=_NextPart_001_01C1D763.B43A2C50--
> ------_=_NextPart_000_01C1D763.B43A2C50
> Content-Type: application/msword;
> 	name="1014671916703Test1.doc"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment;
> 	filename="1014671916703Test1.doc"
> .................
> 
> 
> But when I did the same for the non-working case, it skips part of it.
> 
> Any help would be greatly appreciated.
> 
> thanks
> -Kishore


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Problem in sending mails

Posted by MAXMOUSE <ma...@ciindia.com>.
Hi,
     James is running in my machine which in mycompany LAN. I configured DNS
server settings. When i am sending mails to the users created in james it
working correctly. If i try to send mail to extenal accounts(eg.
anyuser@hotmail.com) it is not working. The log message is given below.

Please help me to solve this problem.

James Mailet Log Content
Fri Apr 05 11:11:23 GMT+05:30 2002 [INFO   ] (James.Mailet): ToProcessor:
Sending mail org.apache.james.core.MailImpl@49ce70 to transport
Fri Apr 05 11:11:23 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Remotely delivering mail Mail1017985283843-98-!538798840
Fri Apr 05 11:11:23 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
sending mail to [m_muruges@hotmail.com] on hotmail.com
Fri Apr 05 11:11:23 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Remote delivery thread (0) will process mail
Mail1017985283843-98-!538798840-to-hotmail.com
Fri Apr 05 11:11:23 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
attempting to deliver Mail1017985283843-98-!538798840-to-hotmail.com
Fri Apr 05 11:11:25 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
attempting delivery of Mail1017985283843-98-!538798840-to-hotmail.com to
host hotmail.com to [m_muruges@hotmail.com]
Fri Apr 05 11:12:11 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Exception delivering message
(Mail1017985283843-98-!538798840-to-hotmail.com) - Could not connect to SMTP
host: hotmail.com, port: 25
Fri Apr 05 11:12:11 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Permanent exception delivering mail
(Mail1017985283843-98-!538798840-to-hotmail.com:
javax.mail.MessagingException: Could not connect to SMTP host: hotmail.com,
port: 25
 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:855)
 at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)
 at javax.mail.Service.connect(Service.java:234)
 at javax.mail.Service.connect(Service.java:135)
 at javax.mail.Service.connect(Service.java:87)
 at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93)
 at
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.jav
a:190)
 at
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:39
4)
 at java.lang.Thread.run(Thread.java:484)

Fri Apr 05 11:12:11 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Sending failure message Mail1017985283843-98-!538798840-to-hotmail.com
Fri Apr 05 11:12:11 GMT+05:30 2002 [INFO   ] (James.Mailet): ToProcessor:
Sending mail org.apache.james.core.MailImpl@3258fa to transport
Fri Apr 05 11:12:11 GMT+05:30 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Remotely delivering mail Mail1017985331359-99-!1711943075


bye
muruges



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>