File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes New to Java Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "New to Java Mail" Watch "New to Java Mail" New topic
Author

New to Java Mail

hatim osman
Ranch Hand

Joined: Jun 10, 2005
Posts: 105
Hi there...
I am new to Java Mail API and I nedd some help; I am wondering how we can identify the name of the mail server? ex. if the I am trying to access a yahoo mail or hotmail.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The only way is by contacting the server admin and asking. Yahoo, GMail or Hotmail will probably have an FAQ which tells you the server details and rules about how to connect; you will have to search these sites to find out though.

A piece of advice if you are new to JavaMail: download your own SMTP server (James for example) or use a test harness (Dumbster) and develop against this till you are sure your code works exactly as expected. Some people find configuring JavaMail to work with a remote SMTP server difficult, so its good to know when you have to deal with this that its not your code which is to blame. Good luck.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
hatim osman
Ranch Hand

Joined: Jun 10, 2005
Posts: 105
Hi
Thanx for your enlightening reply. I will start searching those sites.
 
GeeCON Prague 2014
 
subject: New to Java Mail