Example usage for Java org.springframework.mail.javamail MimeMessageHelper fields, constructors, methods, implement or subclass
The text is from its open source code.
int | MULTIPART_MODE_MIXED Constant indicating a multipart message with a single root multipart element of type "mixed". |
int | MULTIPART_MODE_RELATED Constant indicating a multipart message with a single root multipart element of type "related". |
MimeMessageHelper(MimeMessage mimeMessage) Create a new MimeMessageHelper for the given MimeMessage, assuming a simple text message (no multipart content, i.e. | |
MimeMessageHelper(MimeMessage mimeMessage, @Nullable String encoding) Create a new MimeMessageHelper for the given MimeMessage, assuming a simple text message (no multipart content, i.e. | |
MimeMessageHelper(MimeMessage mimeMessage, boolean multipart) Create a new MimeMessageHelper for the given MimeMessage, in multipart mode (supporting alternative texts, inline elements and attachments) if requested. | |
MimeMessageHelper(MimeMessage mimeMessage, int multipartMode) Create a new MimeMessageHelper for the given MimeMessage, in multipart mode (supporting alternative texts, inline elements and attachments) if requested. | |
MimeMessageHelper(MimeMessage mimeMessage, boolean multipart, @Nullable String encoding) Create a new MimeMessageHelper for the given MimeMessage, in multipart mode (supporting alternative texts, inline elements and attachments) if requested. | |
MimeMessageHelper(MimeMessage mimeMessage, int multipartMode, @Nullable String encoding) Create a new MimeMessageHelper for the given MimeMessage, in multipart mode (supporting alternative texts, inline elements and attachments) if requested. |
void | addAttachment(String attachmentFilename, DataSource dataSource) Add an attachment to the MimeMessage, taking the content from a javax.activation.DataSource . |
void | addAttachment(String attachmentFilename, File file) Add an attachment to the MimeMessage, taking the content from a java.io.File . |
void | addAttachment(String attachmentFilename, InputStreamSource inputStreamSource) Add an attachment to the MimeMessage, taking the content from an org.springframework.core.io.InputStreamResource . |
void | addAttachment(String attachmentFilename, InputStreamSource inputStreamSource, String contentType) Add an attachment to the MimeMessage, taking the content from an org.springframework.core.io.InputStreamResource . |
void | addBcc(InternetAddress bcc) |
void | addBcc(String bcc) |
void | addBcc(String bcc, String personal) |
void | addCc(InternetAddress cc) |
void | addCc(String cc) |
void | addCc(String cc, String personal) |
void | addInline(String contentId, DataSource dataSource) Add an inline element to the MimeMessage, taking the content from a javax.activation.DataSource . |
void | addInline(String contentId, File file) Add an inline element to the MimeMessage, taking the content from a java.io.File . |
void | addInline(String contentId, Resource resource) Add an inline element to the MimeMessage, taking the content from a org.springframework.core.io.Resource . |
void | addInline(String contentId, InputStreamSource inputStreamSource, String contentType) Add an inline element to the MimeMessage, taking the content from an org.springframework.core.InputStreamResource , and specifying the content type explicitly. |
void | addTo(InternetAddress to) |
void | addTo(String to) |
void | addTo(String to, String personal) |
FileTypeMap | getFileTypeMap() Return the FileTypeMap used by this MimeMessageHelper. |
MimeMessage | getMimeMessage() Return the underlying MimeMessage object. |
boolean | isMultipart() Return whether this helper is in multipart mode, i.e. |
void | setBcc(InternetAddress bcc) |
void | setBcc(InternetAddress[] bcc) |
void | setBcc(String bcc) |
void | setBcc(String[] bcc) |
void | setCc(InternetAddress cc) |
void | setCc(InternetAddress[] cc) |
void | setCc(String cc) |
void | setCc(String[] cc) |
void | setFrom(InternetAddress from) |
void | setFrom(String from) |
void | setFrom(String from, String personal) |
void | setPriority(int priority) Set the priority ("X-Priority" header) of the message. |
void | setReplyTo(String replyTo, String personal) |
void | setReplyTo(InternetAddress replyTo) |
void | setReplyTo(String replyTo) |
void | setSentDate(Date sentDate) Set the sent-date of the message. |
void | setSubject(String subject) Set the subject of the message, using the correct encoding. |
void | setText(String text, boolean html) Set the given text directly as content in non-multipart mode or as default body part in multipart mode. |
void | setText(String plainText, String htmlText) Set the given plain text and HTML text as alternatives, offering both options to the email client. |
void | setText(String text) Set the given text directly as content in non-multipart mode or as default body part in multipart mode. |
void | setTo(InternetAddress to) |
void | setTo(InternetAddress[] to) |
void | setTo(String to) |
void | setTo(String[] to) |
void | setValidateAddresses(boolean validateAddresses) Set whether to validate all addresses which get passed to this helper. |