T
- the type of content to be added to a Multi Part message@Role
public interface MimeBodyPartFactory<T>
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.MimeBodyPart |
create(T content,
Map<String,Object> parameters)
Create a
BodyPart . |
javax.mail.internet.MimeBodyPart create(T content, Map<String,Object> parameters) throws javax.mail.MessagingException
BodyPart
.content
- the content of the body part (depends on the implementation, can be some String containing plain
text, some String containing HTML, an attachment, etc)parameters
- the list of extra parameters. This is used for example to pass alternate content for the mail
using the alternate
key in the HTML Mime Body Part Factory. Mail headers can also be passed using
the headers
key with a Map<String, String>
value containing header keys and valuesjavax.mail.MessagingException
- when an error occursCopyright © 2004–2022 XWiki. All rights reserved.