public interface JavaMailContentHandler
JavaMailContentHandler
. It allows to easily add new implementations
of Content
and the associated JavaMailContentHandler
without
modifying the JavaMailSender
implementation.Modifier and Type | Method and Description |
---|---|
void |
setContent(javax.mail.internet.MimePart message,
javax.mail.Multipart multipart,
Email email,
Content content)
Read the content and add it the message.
|
void setContent(javax.mail.internet.MimePart message, javax.mail.Multipart multipart, Email email, Content content) throws ContentHandlerException
message
- the message that is about to be sentmultipart
- the message is a multipart message, add the content to it
before sending the messageemail
- the email message sourcecontent
- the content to add to the messageContentHandlerException
- when the handler couldn't add the content to the messageCopyright © 2017. All rights reserved.