• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

New to Java Mail

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
hatim osman
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thanx for your enlightening reply. I will start searching those sites.
reply
    Bookmark Topic Watch Topic
  • New Topic