| Modifier and Type | Interface and Description |
|---|---|
| public interface | MailMessage
This is a common interface for mail messages, allowing a user to set key values required in assembling a mail message, without needing to know if the underlying message is a simple text message or a more sophisticated MIME message. |
| public interface | MailSender
This interface defines a strategy for sending simple mails. |
| Modifier and Type | Class and Description |
|---|---|
| public class | MailAuthenticationException
Exception thrown on failed authentication. |
| public abstract class | MailException
Base class for all mail exceptions. |
| public class | MailParseException
Exception thrown if illegal message properties are encountered. |
| public class | MailPreparationException
Exception to be thrown by user code if a mail cannot be prepared properly, for example when a FreeMarker template cannot be rendered for the mail text. |
| public class | MailSendException
Exception thrown when a mail sending error is encountered. |
| public class | SimpleMailMessage
Models a simple mail message, including data such as the from, to, cc, subject, and text fields. |