I had the same problem sending to hotmail. I think the problem is 
transport.connect() is not successful, so transport.sendMessage(...) returns 
the "Not connected" exception. I also noticed that when 
transport.sendMessage(...) fails, it never tries the next MX. I added the 
following and it seemed to fix the problem:

transport.connect ();

if (!(transport.isConnected())) {
   continue; // try the next MX, if there's any left
}
transport.sendMessage(message, recipients);


>From: "Serge Knystautas" <[EMAIL PROTECTED]>
>Reply-To: "Java Apache Mail Server" <[EMAIL PROTECTED]>
>To: "Java Apache Mail Server" <[EMAIL PROTECTED]>
>Subject: Re: No mails no bug?
>Date: Tue, 27 Jun 2000 09:14:48 -0600
>
>This is patched by using the latest mail.jar (from Sun).  It might not be 
>in
>CVS, or perhaps you're using an older version.  Thanks for the bug report!
>I'll confirm it's in CVS when I'm back in the office.
>
>Serge
>
>----- Original Message -----
>From: Anthony Eden <[EMAIL PROTECTED]>
>To: Java Apache Mail Server <[EMAIL PROTECTED]>
>Sent: Tuesday, June 27, 2000 8:14 AM
>Subject: Re: No mails no bug?
>
>
> > Well, now that you mention it, I have found another potential bug:
> >
> > Has anyone on this list tried to send mail to a hotmail.com account 
>using
> > JAMES?  How about, is anyone on this list using JAMES to send mail to 
>this
> > mailing list?  The reason I ask is because I am unable to send mail to
> > either hotmail.com addresses or list.working-dogs.com.  JAMES barfs and
> > says:
> >
> > Exception delivering mail: Delivery failure:
> > java.lang.IllegalStateException: Not connected
> >
> > Then it says:
> >
> > Storing message Mail961770928562-to-list.working-dogs.com123 into 
>delayed
> > after 3 retries
> >
> > Any thoughts?
> >
> > Sincerely,
> > Anthony Eden
> > [EMAIL PROTECTED]
> >
> > --
> > Signature Domains, Inc.
> > 4021 Laguna St.
> > Miami, FL   33146
> >
> > Phone: 305 446 6811
> > Fax: 305 446 3456
> >
> > http://www.signaturedomains.com/
> >
> > ----------
> > >From: Federico Barbieri <[EMAIL PROTECTED]>
> > >To: Java Apache Mail Server <[EMAIL PROTECTED]>
> > >Subject: No mails no bug?
> > >Date: Tue, Jun 27, 2000, 12:40 AM
> > >
> >
> > > It's a few days the list seems snoring... does it means james is 
>working
> > > very well, no more features are needed, no bugs...
> > >
> > > Don't think so... :-)
> > >
> > > --
> > > Federico Barbieri
> > > <[EMAIL PROTECTED]>
> > >
> > >
> > > ------------------------------------------------------------
> > > To subscribe:        [EMAIL PROTECTED]
> > > To unsubscribe:      [EMAIL PROTECTED]
> > > Archives and Other:  <http://java.apache.org/>
> > > Problems?:           [EMAIL PROTECTED]
> > >
> >
> >
> > ------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Archives and Other:  <http://java.apache.org/>
> > Problems?:           [EMAIL PROTECTED]
> >
> >
>
>
>
>------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Archives and Other:  <http://java.apache.org/>
>Problems?:           [EMAIL PROTECTED]
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to