Receiving Email using POP3 protocol

In this post under Java Mail, I will explain with example how to receive email using POP3 protocal. The steps involved are 1) Setup the properties object2) Create a Session object3) Get a Store instance using Session’s getStore method4) Connect to the store using email address and application password5) Get the inbox folder from the…… Continue reading Receiving Email using POP3 protocol

javax.mail.Authenticator Example

In this post under Java Mail, I will explain the use of Authenticator abstract class with an example. Note: For this example and other examples in future we need to have1) Gmail account2) GMail SMTP server address3) Stop the antivirus software running on your local.4) Create an application password. The steps are mentioned in the…… Continue reading javax.mail.Authenticator Example

ConnectionListener Example

In this post under Java Mail, I will explain the use of ConnectionListener interface with an example. Note: For this example and other examples in future we need to have1) Gmail account2) GMail SMTP server address3) Stop the antivirus software running on your local.4) Create an application password. The steps are mentioned in the url…… Continue reading ConnectionListener Example

TransportListener Example

In this post under Java Mail, I will explain with example the purpose and how to use TransportListener interface. Note: For this example and other examples in future we need to have1) Gmail account2) GMail SMTP server address3) Stop the antivirus software running on your local.4) Create an application password. The steps are mentioned in…… Continue reading TransportListener Example