• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JavaMail Error

 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22815
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic