Java
  Home arrow Java arrow Page 2 - Java Mail API: Getting Started
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

Java Mail API: Getting Started
By: A.P.Rajshekhar
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 30
    2005-11-16

    Table of Contents:
  • Java Mail API: Getting Started
  • Mail Protocols: Rules that Govern Email
  • Java Mail: Understanding the API
  • Java Mail: Putting it all together

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Java Mail API: Getting Started - Mail Protocols: Rules that Govern Email


    (Page 2 of 4 )

    Protocols are rules that define an exact format for communication between systems. In the case of mailing systems, there are four main protocols:

    1. SMTP
    2. POP
    3. IMAP
    4. MIME

    Let's take a look at each of them.

    1. SMTP:

    SMTP, short for Simple Mail Transfer Protocol, defines a mechanism for delivery of email. Any email client, to transfer mail, contacts the SMTP server of the organization that, in turn, delivers the message to the recipient’s SMTP server. The recipient extracts the message using POP or IMAP. In essence, SMTP’s function is only to deliver the message.

    2. POP:

    It is acronym for Post Office Protocol. It is currently in its third version, known as POP3. Most of the mail servers use this protocol to provide the delivered messages to the user. In reality POP3 just ensures that each user has his or her own mailbox.

    3. IMAP:

    IMAP stands for Internet Message Access Protocol. While POP is for offline access of messages, IMAP is for online access. In other words, when POP is used for accessing the messages, they are offloaded from the server, whereas in the case of IMAP, they are accessed on the server itself. In essence, IMAP allows a client application to access a remote message repository as if it were local. When compared to POP, IMAP taxes the server heavily.

    4. MIME:

    Multipart Internet Mail Extension, or MIME for short, is not about delivery or storage of messages. It is about the attachment and type of content being delivered.

    When working with Java Mail API, one doesn’t have to worry about which of these have to be supported, because they can be plugged in any time in the future. Now that the protocols have been introduced, let's move on to the next section.

    More Java Articles
    More By A.P.Rajshekhar


       · HiThank you for reading my article. What I have tried to do is to look at Mail API...
       · Very helpful. Thank you for taking the time to share your knowledge.
       · Thank you for your valuable comments. Readers like you encourage me to write.
     

    JAVA ARTICLES

    - Deploying Multiple Java Applets as One
    - Deploying Java Applets
    - Understanding Deployment Frameworks
    - Database Programming in Java Using JDBC
    - Extension Interfaces and SAX
    - Entities, Handlers and SAX
    - Advanced SAX
    - Conversions and Java Print Streams
    - Formatters and Java Print Streams
    - Java Print Streams
    - Wildcards, Arrays, and Generics in Java
    - Wildcards and Generic Methods in Java
    - Finishing the Project: Java Web Development ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT