JavaMail Archive

Authentication using JavaMail SMTP

Many SMTP servers use an authentication system as an extra layer of security in their mail transport. If you need to send email to such a server with JavaMail, the library provides a convenient abstraction …

Replying email in Java Mail API

In this chapter we will see how to reply to an email using JavaMail API. We can forward the received mail to someone else as we send emails. There are many javamail classes that are …

Deleting email in Java Mail API

We already discussed the fundamentals of Java Mail API. In the previous chapters we were discussed the way by which Java mail API uses SMTP to send emails with attachment and without attachment. Also we …