org.springframework.mail.javamail
Interface MimeMessagePreparator
- public interface MimeMessagePreparator
Callback interface for preparation of JavaMail MIME messages.
The respective send methods of JavaMailSender will take care of the
actual creation of a MimeMessage instance, and of proper exception conversion.
- Author:
- Juergen Hoeller
- Version: $Id: MimeMessagePreparator.java,v 1.2 2003/11/06 13:22:42 dkopylenko Exp $
- See Also: JavaMailSender.send(org.springframework.mail.javamail.MimeMessagePreparator), JavaMailSender.send(org.springframework.mail.javamail.MimeMessagePreparator[])
| Method Summary |
void | prepare(MimeMessage mimeMessage) Prepare the given new MimeMessage instance. |
prepare
public void prepare(MimeMessage mimeMessage)
throws MessagingException
- Prepare the given new MimeMessage instance.
- Parameters:
- mimeMessage - the message to prepare
- Throws:
- MessagingException - passing any exceptions thrown by MimeMessage
methods through for automatic conversion to the MailException hierarchy