Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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: 43027
76
  • 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: 43027
76
  • 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: 43027
76
  • 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: 22509
122
Eclipse IDE Spring VI Editor 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic