mail

Mail

class Mail [FROM, TO, SUBJECT, BODY] extends AnyRef

Mail instance builder

Utilizes statically typed builder pattern. Only instance with from, to, subjectand body(either text or html) values set can be actually sent to MailActor.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Mail
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Mail (from: Option[(String, String)], subject: Option[String], recipients: List[Recipient], text: Option[String], html: Option[Html], attachments: List[Attachment])

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. val attachments : List[Attachment]

  8. def bcc (name: String, address: String): Mail[FROM, SET, SUBJECT, BODY]

    Returns new instance with BCC: recipient appended

  9. def cc (name: String, address: String): Mail[FROM, SET, SUBJECT, BODY]

    Returns new instance with CC: recipient appended

  10. def clone (): AnyRef

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

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def from (name: String, address: String): Mail[SET, TO, SUBJECT, BODY]

    Returns new instance with from field set to given values

  15. def from (f: (String, String)): Mail[SET, TO, SUBJECT, BODY]

    Returns new instance with from field set to given tuple (with (name, address) fields)

  16. val from : Option[(String, String)]

  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  19. val html : Option[Html]

  20. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  21. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. val recipients : List[Recipient]

  25. val subject : Option[String]

  26. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  27. val text : Option[String]

  28. def to (name: String, address: String): Mail[FROM, SET, SUBJECT, BODY]

    Returns new instance with TO: recipient appended

  29. def toString (): String

    Definition Classes
    AnyRef → Any
  30. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def withAttachment (name: String, data: Source, mimeType: String): Mail[FROM, TO, SUBJECT, BODY]

    Returns new instance with attachment appended to attachments list

  34. def withAttachments (a_x: Attachment, a_xs: Attachment*): Mail[FROM, TO, SUBJECT, BODY]

    Returns new instance with attachments list replaced with given attachments.

  35. def withAttachments (a: List[Attachment]): Mail[FROM, TO, SUBJECT, BODY]

    Returns new instance with attachments list replaced with given attachments.

  36. def withHtml (h: Html): Mail[FROM, TO, SUBJECT, SET]

    Returns new instance with html body set to given value

  37. def withRecipients (to_x: Recipient, to_xs: Recipient*): Mail[FROM, SET, SUBJECT, BODY]

    Returns new instance with recipients list replaced with given recipients.

  38. def withRecipients (r: List[Recipient]): Mail[FROM, SET, SUBJECT, BODY]

    Returns new instance with recipients list replaced with given list.

  39. def withSubject (s: String): Mail[FROM, TO, SET, BODY]

    Returns new instance with subject set to given value

  40. def withText (t: String): Mail[FROM, TO, SUBJECT, SET]

    Returns new instance with text body set to given value

Inherited from AnyRef

Inherited from Any