public class StringContentHandler extends Object implements JavaMailContentHandler
Constructor and Description |
---|
StringContentHandler(MimeTypeProvider mimetypeProvider,
CharsetDetector charsetProvider) |
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.
|
public StringContentHandler(MimeTypeProvider mimetypeProvider, CharsetDetector charsetProvider)
public void setContent(javax.mail.internet.MimePart message, javax.mail.Multipart multipart, Email email, Content content) throws ContentHandlerException
JavaMailContentHandler
setContent
in interface JavaMailContentHandler
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 © 2021. All rights reserved.