wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "New to Java Mail" Watch "New to Java Mail" New topic

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

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
Thanx for your enlightening reply. I will start searching those sites.
jQuery in Action, 2nd edition
subject: New to Java Mail
Similar Threads
Java Mail
How to set SMTP server
How to create new account in mail server using java mail
Mail API
Does Sun changes test questions every month.those who have appeared, pl. reply.