Sent messages cannot reach destination. Unknown receipient!_NEWLINE_!error.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dean_Bernocchi
Posted On:   Thursday, May 10, 2001 07:20 AM

As per your tutorial, I created all the proper objects to send a mail message to my mail server which is a MS Exchange server using smtp. I got the server id from my Outlook setup and the security setup uses NT authentication. I create a transport object and connect using my NT name and password. Then I send the message. The mail server can never deliver the message. I always get an "Unknown Receipient" error message in my outlook mail box, even if I send it to myself. Obviously, my mail server gets the message from java because a exact copy is embedded as an attachment in the error message email from the mail server. I send test messages through outlook to    More>>

As per your tutorial, I created all the proper objects to send
a mail message to my mail server which is a MS Exchange server
using smtp. I got the server id from my Outlook setup and the security setup
uses NT authentication. I create a transport object and connect
using my NT name and password. Then I send the message.

The mail server can never deliver the message. I always get an "Unknown
Receipient" error message in my outlook mail box, even if I send
it to myself.
Obviously, my mail server gets the message from java
because a exact copy is embedded as an attachment in the
error message email from the mail server.

I send test messages through outlook to the same email addresses
and the messages are send successfully.


Here is the code I am using.

Properties props = new Properties();

props.put( "mail.smtp.host", "myServer" );
Session mailSession = Session.getDefaultInstance( props, null );
//mailSession.setDebug( true );

MimeMessage mess = new MimeMessage( mailSession );

Transport mailTrans = null;
try
{
mess.setText("Boo");
mess.setSubject("Descrepancy Report");
mess.setFrom( new InternetAddress("myAddress@myCompany.com" ) );
mess.addRecipient( Message.RecipientType.TO, new InternetAddress( "client@aol.com" ) );
//Transport.send( mess );
mailTrans = mailSession.getTransport("smtp");
mailTrans.connect("compExchMailServer", "ntLogin", "ntPassword" );
mailTrans.send( mess );
System.out.println("OK So far");
}
catch ( Exception e )

No matter what address that I send to either internally or externally
I get the same errror "Unknown Receipient".

Is there something that I am not setting up properly or is there something
unique about communicating smtp tp MS Exchange?

   <<Less

Re: Sent messages cannot reach destination. Unknown receipient!_NEWLINE_!error.

Posted By:   John_Zukowski  
Posted On:   Monday, May 14, 2001 07:55 AM

Check the readme file that comes with JavaMail. There is a patch level of the software you must be running at. There is normally nothing special you have to do.
About | Sitemap | Contact