The Java Mail API provides a platform independent and protocol independent framework to build mail and messaging applications. The Java Mail API is available as an optional package for use with the Java SE platform and is also included in the Java EE platform.
SMTP is an acronym for Simple Mail Transfer Protocol. It provides a mechanism to deliver the email. We can use Apache James server, Postcast server, cmail server etc. as an SMTP server. But if we purchase the host space, an SMTP server is bydefault provided by the host provider. For example, my smtp server is mail.javatpoint.com. If we use the SMTP server provided by the host provider, authentication is required for sending and receiving emails.
POP is an acronym for Post Office Protocol, also known as POP3. It provides a mechanism to receive the email. It provides support for single mail box for each user. We can use Apache James server, cmail server etc. as an POP server. But if we purchase the host space, an POP server is bydefault provided by the host provider. For example, the pop server provided by the host provider for my site is mail.javatpoint.com. This protocol is defined in RFC 1939.
IMAP is an acronym for Internet Message Access Protocol. IMAP is an advanced protocol for receiving messages. It provides support for multiple mail box for each user ,in addition to, mailbox can be shared by multiple users. It is defined in RFC 2060.
MIME is an acronym for Multiple Internet Mail Extension. MIME tells the browser what is being sent e.g. attachment, format of the messages etc. It is not known as mail transfer protocol but it is used by your mail program.
1. javax.mail.Session Class
2. javax.mail.Message class
3. javax.mail.internet.MimeMessage class
4. javax.mail.Address class
5. javax.mail.internet.InternetAddress class
6. javax.mail.Authenticator class
7. javax.mail.PasswordAuthentication class
8. javax.mail.Transport class
9. javax.mail.Store class
10. javax.mail.Folder class