Class/Object

mail

Mail

Related Docs: object Mail | package mail

Permalink

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 mail.MailActor.MailActor.

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

Instance Constructors

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

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val attachments: List[Attachment]

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

    Permalink

    Returns new instance with BCC: recipient appended

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

    Permalink

    Returns new instance with CC: recipient appended

  8. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

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

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

    Permalink

    Returns new instance with from field set to given values

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

    Permalink

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

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

    Permalink
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

    Permalink
  18. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. val recipients: List[Recipient]

    Permalink
  23. def replyTo(name: String, address: String): Mail[FROM, SET, SUBJECT, BODY]

    Permalink

    Returns new instance with reply-to set to given value

  24. val subject: Option[String]

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

    Permalink
    Definition Classes
    AnyRef
  26. val text: Option[String]

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

    Permalink

    Returns new instance with TO: recipient appended

  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

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

    Permalink

    Returns new instance with attachment appended to attachments list

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

    Permalink

    Returns new instance with attachments list replaced with given attachments.

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

    Permalink

    Returns new instance with attachments list replaced with given attachments.

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

    Permalink

    Returns new instance with html body set to given value

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

    Permalink

    Returns new instance with recipients list replaced with given recipients.

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

    Permalink

    Returns new instance with recipients list replaced with given list.

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

    Permalink

    Returns new instance with subject set to given value

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

    Permalink

    Returns new instance with text body set to given value

Inherited from AnyRef

Inherited from Any

Ungrouped