• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail Error

 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,
JSE 1.6.0_26 on Windows 2000
Below is my java code for sending eMail.
Following the code is the exception I am getting.

Exception details:

I don't know if this is relevant but I can send eMail using javascript. Here is my HTML code that successfully sends eMail.

Thanks (in advance) for any help.

Cheers,
Avi.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems that "network_mail_host" is not the name of a server that has an SMTP process running on port 25. (And no, the "mailto:" capability has nothing to do with this.)
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf,
I don't want to publish here the real name of the server that I am trying.
The name that I am using I obtained from the Microsoft Outlook configuration.
There is a field in the configuration GUI that is labelled: Microsoft Exchange Server
I guess what I need is to find the correct values for the properties I am using in my java code like "mail.host".
Perhaps you can tell me how I can discover these values?

Thanks,
Avi.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see. Not mentioning that you changed the name of the server made it a red herring; please avoid that in the future.

Exchange does not by default run an SMTP server; does this one? On port 25?
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf,
I don't know if Exchange is running here as an SMTP server and I also don't know what port it is using.
As I asked in my previous post:

Perhaps you can tell me how I can discover these values?


Cheers,
Avi.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your Exchange server admin say? Can you telnet into port 25 of the Exchange server?
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf,
I open a DOS prompt window and execute the following command:
telnet network_mail_host 25
Upon execution the screen clears and the following message is displayed:
Connection to host lost.

So are you saying that I can only obtain the required information from the Exchange server admin?

Cheers,
Avi.
 
Rob Spoor
Sheriff
Posts: 20819
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can't connect using telnet you won't be able to connect using Java. Contact your system administrator to help you out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!