Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java Mail and MS Exchange Server: Sending Email

913 views
Skip to first unread message

Oliver Tse

unread,
Jun 13, 1999, 3:00:00 AM6/13/99
to
Hi,

When using MS Exchange Server 5.5, I am having difficulty sending any email
outside my domain using Java Mail 1.1. I can send email to addresses in my
domain, but if I send emails to an outside internet address, I get a
"recipient not found" email sent back to me. The code is straightforward as
is taken directly from the example found in the Java Mail documentation.
Anyone else encounter this difficulty with sending mail on an Exchange
Server?

Many thanks,
Oliver

nab...@pacbell.net.nospam

unread,
Jun 13, 1999, 3:00:00 AM6/13/99
to
In article <ulvLKDft#GA.233@cpmsnbbsa05>, "Oliver says...
hi Oliver,

I am not using MS Exchange Server, but using my own ISP mail server as
the smtp server, I have no problem sending email from my java program
running on windows NT using java mail 1.1 to outside email addresses.
(different domains).

my configuration is :

activation.jar(1.0)
mail.jar (1.1.1)
JDK 1.2.1
SMTP server : my outside ISP mail server.

Ince in a while though, the program gets a transit error connecting to the
smtp server for no apparent reason.

I suggest you set debugging to true for your mail javax.mail.Session
instance to observe the protocol exchanged messages.

Nasser


Oliver Tse

unread,
Jun 13, 1999, 3:00:00 AM6/13/99
to
Nasser,

Thanks for the information. I do set debug on and there are no protocol
error messages. I, like you, can send mail out via my ISP's SMTP server
using JavaMail. However, I simply cannot send to other domains using
JavaMail with MS Exchange Server.

Thanks for your help,
Oliver
nab...@pacbell.net.NOSPAM wrote in message <7k1f61$d...@drn.newsguy.com>...

Doug

unread,
Jun 14, 1999, 3:00:00 AM6/14/99
to
In article <ulvLKDft#GA.233@cpmsnbbsa05>,
Oliver Tse <ev...@email.msn.com> wrote:
>Hi,

>
>When using MS Exchange Server 5.5, I am having difficulty sending any email
>outside my domain using Java Mail 1.1. I can send email to addresses in my
>domain, but if I send emails to an outside internet address, I get a
>"recipient not found" email sent back to me. The code is straightforward as
>is taken directly from the example found in the Java Mail documentation.
>Anyone else encounter this difficulty with sending mail on an Exchange
>Server?

I suspect you'll need to create a "custom recipient" address for each
non-Exchange address. I hate to tell anyone this, but you'll have to
read the docs.

doug

0 new messages