The corresponding send methods of JavaMailSender
will take care of the actual creation of a MimeMessage instance,
and of proper exception conversion.
It is often convenient to use a MimeMessageHelper for populating
the passed-in MimeMessage, in particular when working with attachments or
special character encodings.
See MimeMessageHelper's javadoc for an example.
JavaMailSender#send(MimeMessagePreparator), JavaMailSender#send(MimeMessagePreparator[]), MimeMessageHelper
| Modifier and Type | Method and Description |
|---|---|
| public void |
| prepare | back to summary |
|---|---|
| public void prepare(MimeMessage mimeMessage) throws Exception Prepare the given new MimeMessage instance.
| |