Class

com.github.jurajburian.mailer

Content

Related Doc: package mailer

Permalink

case class Content(parts: MimeBodyPart*) extends Product with Serializable

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 as html() for adding HTML or attachFile() to add file attachment.

parts

parts of the message content (represented by MimeBodyPart instances)

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Content
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Content(parts: MimeBodyPart*)

    Permalink

    parts

    parts of the message content (represented by MimeBodyPart instances)

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def append(parts: MimeBodyPart*): Content

    Permalink

    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.

    parts

    content part to append

    returns

    instance of the com.github.jurajburian.mailer.Content class with appended content part

  5. def apply(): MimeMultipart

    Permalink
    Annotations
    @throws( ... )
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def attachBase64(data: String, mimeType: String, name: Option[String] = None, contentId: Option[String] = None, headers: Seq[MessageHeader] = Seq.empty[MessageHeader]): Content

    Permalink

    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.

    data

    Base64-encoded data

    mimeType

    MIME type of the attachment

    name

    name of the attachment (optional)

    contentId

    the Content-ID header field of this body part (optional)

    headers

    content part headers (RFC 822)

    returns

    instance of the com.github.jurajburian.mailer.Content class with appended content part

    See also

    http://www.oracle.com/technetwork/java/faq-135477.html#preencoded

  8. def attachBytes(bytes: Array[Byte], mimeType: String, name: Option[String] = None, contentId: Option[String] = None, headers: Seq[MessageHeader] = Seq.empty[MessageHeader]): Content

    Permalink

    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.

    bytes

    array of bytes representing the attachment

    mimeType

    MIME type of the attachment

    name

    name of the attachment (optional)

    contentId

    the "Content-ID" header field of this body part (optional)

    headers

    content part headers (RFC 822)

    returns

    instance of the com.github.jurajburian.mailer.Content class with appended content part

  9. def attachFile(file: File, name: Option[String] = None, contentId: Option[String] = None, headers: Seq[MessageHeader] = Seq.empty[MessageHeader]): Content

    Permalink

    Appends the given file as the e-mail message attachment.

    Appends the given file as the e-mail message attachment.

    file

    file to attach

    name

    name of the attachment (optional, defaults to the given file name)

    contentId

    the "Content-ID" header field of this body part

    headers

    content part headers (RFC 822)

    returns

    instance of the com.github.jurajburian.mailer.Content class with appended content part

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def html(html: String, charset: String = "UTF-8", headers: Seq[MessageHeader] = Seq.empty[MessageHeader]): Content

    Permalink

    Appends the given HTML string as the new HTML content part.

    Appends the given HTML string as the new HTML content part.

    html

    HTML string to append

    charset

    charset of the given HTML string (defaults to UTF-8)

    headers

    content part headers (RFC 822)

    returns

    instance of the com.github.jurajburian.mailer.Content class with appended content part

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. val parts: MimeBodyPart*

    Permalink

    parts of the message content (represented by MimeBodyPart instances)

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def text(text: String, charset: String = "UTF-8", subtype: String = "plain", headers: Seq[MessageHeader] = Seq.empty[MessageHeader]): Content

    Permalink

    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

    text to append

    charset

    charset of the given text (defaults to UTF-8)

    subtype

    defines subtype of the MIME type (the part after the slash), defaults to UTF-8

    headers

    content part headers (RFC 822)

    returns

    instance of the com.github.jurajburian.mailer.Content class with appended content part

  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped