/Javamail-Api

Send and Retrieve Emails using JavamailAPI. (SMTP, POP3, IMAP)

Primary LanguageJava

fork from Javamail-Api

android implementation Send and Retrieve Emails using Javamail API.

Getting Started

What is Javamail API?

The javax.mail and javax.mail.activation packages contains the core classes of JavaMail API. The JavaMail facility can be applied to many events. It can be used at the time of registering the user (sending notification such as thanks for your interest to my site), forgot password (sending password to the users email id), sending notifications for important updates etc. So there can be various usage of java mail api.

Protocols used in JavaMail API

There are some protocols that are used in JavaMail API.

  • SMTP
  • POP
  • IMAP
  • MIME
  • NNTP and others

JavaMail API Core Classes

There are two packages that are used in Java Mail API: javax.mail and javax.mail.internet package. These packages contains many classes for Java Mail API. They are:

  • javax.mail.Session class
  • javax.mail.Message class
  • javax.mail.internet.MimeMessage class
  • javax.mail.Address class
  • javax.mail.internet.InternetAddress class
  • javax.mail.Authenticator class
  • javax.mail.PasswordAuthentication class
  • javax.mail.Transport class
  • javax.mail.Store class
  • javax.mail.Folder class etc.

Prerequisites

  • Java IDE (Ex: IntelliJ Idea)
  • Java 7/8
  • One Email id with Password
doster