Java org.springframework.mail.javamail MimeMessageHelper fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.mail.javamail MimeMessageHelper fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.mail.javamail MimeMessageHelper.

The text is from its open source code.

Field

intMULTIPART_MODE_MIXED
Constant indicating a multipart message with a single root multipart element of type "mixed".
intMULTIPART_MODE_RELATED
Constant indicating a multipart message with a single root multipart element of type "related".

Constructor

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.

Method

voidaddAttachment(String attachmentFilename, DataSource dataSource)
Add an attachment to the MimeMessage, taking the content from a javax.activation.DataSource .
voidaddAttachment(String attachmentFilename, File file)
Add an attachment to the MimeMessage, taking the content from a java.io.File .
voidaddAttachment(String attachmentFilename, InputStreamSource inputStreamSource)
Add an attachment to the MimeMessage, taking the content from an org.springframework.core.io.InputStreamResource .
voidaddAttachment(String attachmentFilename, InputStreamSource inputStreamSource, String contentType)
Add an attachment to the MimeMessage, taking the content from an org.springframework.core.io.InputStreamResource .
voidaddBcc(InternetAddress bcc)
voidaddBcc(String bcc)
voidaddBcc(String bcc, String personal)
voidaddCc(InternetAddress cc)
voidaddCc(String cc)
voidaddCc(String cc, String personal)
voidaddInline(String contentId, DataSource dataSource)
Add an inline element to the MimeMessage, taking the content from a javax.activation.DataSource .
voidaddInline(String contentId, File file)
Add an inline element to the MimeMessage, taking the content from a java.io.File .
voidaddInline(String contentId, Resource resource)
Add an inline element to the MimeMessage, taking the content from a org.springframework.core.io.Resource .
voidaddInline(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.
voidaddTo(InternetAddress to)
voidaddTo(String to)
voidaddTo(String to, String personal)
FileTypeMapgetFileTypeMap()
Return the FileTypeMap used by this MimeMessageHelper.
MimeMessagegetMimeMessage()
Return the underlying MimeMessage object.
booleanisMultipart()
Return whether this helper is in multipart mode, i.e.
voidsetBcc(InternetAddress bcc)
voidsetBcc(InternetAddress[] bcc)
voidsetBcc(String bcc)
voidsetBcc(String[] bcc)
voidsetCc(InternetAddress cc)
voidsetCc(InternetAddress[] cc)
voidsetCc(String cc)
voidsetCc(String[] cc)
voidsetFrom(InternetAddress from)
voidsetFrom(String from)
voidsetFrom(String from, String personal)
voidsetPriority(int priority)
Set the priority ("X-Priority" header) of the message.
voidsetReplyTo(String replyTo, String personal)
voidsetReplyTo(InternetAddress replyTo)
voidsetReplyTo(String replyTo)
voidsetSentDate(Date sentDate)
Set the sent-date of the message.
voidsetSubject(String subject)
Set the subject of the message, using the correct encoding.
voidsetText(String text, boolean html)
Set the given text directly as content in non-multipart mode or as default body part in multipart mode.
voidsetText(String plainText, String htmlText)
Set the given plain text and HTML text as alternatives, offering both options to the email client.
voidsetText(String text)
Set the given text directly as content in non-multipart mode or as default body part in multipart mode.
voidsetTo(InternetAddress to)
voidsetTo(InternetAddress[] to)
voidsetTo(String to)
voidsetTo(String[] to)
voidsetValidateAddresses(boolean validateAddresses)
Set whether to validate all addresses which get passed to this helper.