Allows for easy testing of clients, as it does not depend on JavaMail's infrastructure classes: no mocking of JavaMail Session or Transport necessary.
org.springframework.mail.javamail.JavaMailSender
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public void | send(SimpleMailMessage...
the messages to send simpleMessages)Send the given array of simple mail messages in batch. |
| send | back to summary |
|---|---|
| public default void send(SimpleMailMessage simpleMessage) throws MailException Send the given simple mail message.
| |
| send | back to summary |
|---|---|
| public void send(SimpleMailMessage... simpleMessages) throws MailException Send the given array of simple mail messages in batch.
| |