Appends the given part (represented by MimeBodyPart
instance) to the existing content parts.
Appends the given part (represented by MimeBodyPart
instance) to the existing content parts.
content part to append
instance of the com.github.jurajburian.mailer.Content class with appended content part
Appends the given string of Base64-encoded data as the e-mail message attachment.
Appends the given string of Base64-encoded data as the e-mail message attachment. Use
instead of the #attachBytes
method if you have already Base64-encoded data and you
want to avoid JavaMail encoding it again.
Base64-encoded data
MIME type of the attachment
name of the attachment (optional)
the Content-ID
header field of this body part (optional)
content part headers (RFC 822)
instance of the com.github.jurajburian.mailer.Content class with appended content part
http://www.oracle.com/technetwork/java/faq-135477.html#preencoded
Appends the given array of bytes as the e-mail message attachment.
Appends the given array of bytes as the e-mail message attachment. Useful especially when the original file object is not available, only its array of bytes.
array of bytes representing the attachment
MIME type of the attachment
name of the attachment (optional)
the "Content-ID" header field of this body part (optional)
content part headers (RFC 822)
instance of the com.github.jurajburian.mailer.Content class with appended content part
Appends the given file as the e-mail message attachment.
Appends the given file as the e-mail message attachment.
file to attach
name of the attachment (optional, defaults to the given file name)
the "Content-ID" header field of this body part
content part headers (RFC 822)
instance of the com.github.jurajburian.mailer.Content class with appended content part
Appends the given HTML string as the new HTML content part.
Appends the given HTML string as the new HTML content part.
HTML string to append
charset of the given HTML string (defaults to UTF-8)
content part headers (RFC 822)
instance of the com.github.jurajburian.mailer.Content class with appended content part
parts of the message content (represented by MimeBodyPart
instances)
Appends the given string as the text content part (defaults to text/plain).
Appends the given string as the text content part (defaults to text/plain).
text to append
charset of the given text (defaults to UTF-8)
defines subtype of the MIME type (the part after the slash), defaults to UTF-8
content part headers (RFC 822)
instance of the com.github.jurajburian.mailer.Content class with appended content part
Represents the content of the e-mail message, composed of individual
MimeBodyPart
instances. For easier use, helper methods to add specific content are available, such ashtml()
for adding HTML orattachFile()
to add file attachment.parts of the message content (represented by
MimeBodyPart
instances)