Saturday, January 10, 2009

Introduction to JavaMail API

Introduction to JavaMail API

The JavaMail API is an optional package (standard extension) for reading, composing, and sending electronic messages. You use the package to create Mail User Agent (MUA) type programs, similar to Eudora, Pine, and Microsoft Outlook. Its main purpose is not for transporting, delivering, and forwarding messages like sendmail or other Mail Transfer Agent (MTA) type programs. In other words, users interact with MUA-type programs to read and write emails. MUAs rely on MTAs to handle the actual delivery.

The JavaMail API is designed to provide protocol-independent access for sending and receiving messages by dividing the API into two parts:

· The first part of the API is the focus of this course. Basically, how to send and receive messages independent of the provider/protocol.

· The second part speaks the protocol-specific languages, like SMTP, POP, IMAP, and NNTP. With the JavaMail API, in order to communicate with a server, you need a provider for a protocol. The creation of protocol-specific providers is not covered in this course as Sun provides a sufficient set for free.

1. Mail Protocols

2. Installing JavaMail API

3. Using the JavaMail API

4. JavaMail API Core Classes

5. JavaMail API Checking for Mail

6. JavaMail API Replying to Mail

7. JavaMail API Sending Attachments

8. JavaMail API Sending Your First Message

9. JavaMail API Sending HTML Messages with Images


Cookies


****************************************************************


No comments:

Post a Comment