JavaMail Tutorial
Deleting email
As we send, forward and receive the emails, we can delete it too. The setFlag method of Message class is used to delete a particular…
Forwarding email
We can forward the received mail to someone else as we send emails. There are many javamail classes that are used to forward the messages…
Sending Html
As we send the email, we can send the html content also. For better understanding of this example, learn the steps of sending email using…
Receiving attachment
As we receive the email, we can receive the attachment also by using Multipart and BodyPart classes found in JavaMail API. For better understanding of…
Sending attachment
For sending email with attachment, JavaMail API provides some useful classes like BodyPart, MimeBodyPart etc. For better understanding of this example, learn the steps of…
Receiving Email
For receiving email Store and Folder classes are used in collaboration with MimeMessage, Session and Transport classes. For better understanding of this example, learn the…
Sending email by Gmail
We can send email by using the SMTP server of gmail. It is good if you are don’t have any SMTP server and reliable. Here…
Sending Email
There are various ways to send email using JavaMail API. For this purpose, you must have SMTP server that is responsible to send mails. You…
JavaMail Introduction
The JavaMail is an API that is used to compose, write and read electronic messages (emails). The JavaMail API provides protocol-independent and plateform-independent framework for…