net.liftweb.util

Mailer

object Mailer extends Mailer

Utilities for sending email.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Mailer
  2. Mailer
  3. SimpleInjector
  4. Injector
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class AddressType extends RoutingType

  2. final case class BCC(address: String, name: Box[String]) extends AddressType with Product with Serializable

  3. final case class CC(address: String, name: Box[String]) extends AddressType with Product with Serializable

  4. final case class From(address: String, name: Box[String]) extends AddressType with Product with Serializable

  5. abstract class Inject[T] extends StackableMaker[T] with Vendor[T]

    Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.

  6. abstract class MailBodyType extends MailTypes

  7. sealed abstract class MailTypes extends AnyRef

  8. final case class MessageHeader(name: String, value: String) extends MailTypes with Product with Serializable

    Add message headers to outgoing messages

  9. final case class MessageInfo(from: From, subject: Subject, info: List[MailTypes]) extends Product with Serializable

  10. class MsgSender extends SpecializedLiftActor[MessageInfo]

    Attributes
    protected
  11. final case class PlainMailBodyType(text: String) extends MailBodyType with Product with Serializable

    Represents a text/plain mail body.

  12. final case class PlainPlusBodyType(text: String, charset: String) extends MailBodyType with Product with Serializable

    Represents a text/plain mail body that is encoded with the specified charset

  13. final case class PlusImageHolder(name: String, mimeType: String, bytes: Array[Byte], attachment: Boolean) extends Product with Serializable

  14. final case class ReplyTo(address: String, name: Box[String]) extends AddressType with Product with Serializable

  15. sealed abstract class RoutingType extends MailTypes

  16. final case class Subject(subject: String) extends RoutingType with Product with Serializable

  17. final case class To(address: String, name: Box[String]) extends AddressType with Product with Serializable

  18. final case class XHTMLMailBodyType(text: NodeSeq) extends MailBodyType with Product with Serializable

  19. final case class XHTMLPlusImages(text: NodeSeq, items: PlusImageHolder*) extends MailBodyType with Product with Serializable

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. implicit def adListToAdArray(in: List[AddressType]): Array[Address]

    Definition Classes
    Mailer
  7. implicit def addressToAddress(in: AddressType): Address

    Definition Classes
    Mailer
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. var authenticator: Box[Authenticator]

    Passwords cannot be accessed via System.

    Passwords cannot be accessed via System.getProperty. Instead, we provide a means of explicitlysetting the authenticator.

    Definition Classes
    Mailer
  10. def blockingSendMail(from: From, subject: Subject, rest: MailTypes*): Unit

    Synchronously send an email.

    Synchronously send an email.

    Definition Classes
    Mailer
  11. def buildMailBody(tab: MailBodyType): BodyPart

    Given a MailBodyType, convert it to a javax.

    Given a MailBodyType, convert it to a javax.mail.BodyPart. You can override this method if you add custom MailBodyTypes

    Attributes
    protected
    Definition Classes
    Mailer
  12. def buildProps: Properties

    Definition Classes
    Mailer
  13. lazy val charSet: String

    Set the mail.

    Set the mail.charset property to something other than UTF-8 for non-UTF-8 mail.

    Definition Classes
    Mailer
  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. var customProperties: Map[String, String]

    Custom properties for the JNDI session

    Custom properties for the JNDI session

    Definition Classes
    Mailer
  16. lazy val devModeSend: Inject[(MimeMessage) ⇒ Unit]

    How to send a message in dev mode.

    How to send a message in dev mode. By default, use Transport.send(msg)

    Definition Classes
    Mailer
  17. def encodeHtmlBodyPart(in: NodeSeq): String

    The default mechanism for encoding a NodeSeq to a String representing HTML.

    The default mechanism for encoding a NodeSeq to a String representing HTML. By default, use Html5.toString(node)

    Attributes
    protected
    Definition Classes
    Mailer
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def firstNode(in: NodeSeq): Node

    Attributes
    protected
    Definition Classes
    Mailer
  22. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  24. def host: String

    The host that should be used to send mail.

    The host that should be used to send mail.

    Definition Classes
    Mailer
  25. var hostFunc: () ⇒ String

    To change the way the host is calculated, set this to the function that calcualtes the host name.

    To change the way the host is calculated, set this to the function that calcualtes the host name. By default: System.getProperty("mail.smtp.host")

    Definition Classes
    Mailer
  26. implicit def inject[T](implicit man: Manifest[T]): Box[T]

    Perform the injection for the given type.

    Perform the injection for the given type. You can call: inject[Date] or inject[List[Map[String, PaymentThing]]]. The appropriate Manifest will be

    Definition Classes
    SimpleInjectorInjector
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. var jndiName: Box[String]

    Use the mailer resource in your container by specifying the JNDI name

    Use the mailer resource in your container by specifying the JNDI name

    Definition Classes
    Mailer
  29. lazy val jndiSession: Box[Session]

    Definition Classes
    Mailer
  30. def msgSendImpl(from: From, subject: Subject, info: List[MailTypes]): Unit

    Definition Classes
    Mailer
  31. lazy val msgSender: MsgSender

    Attributes
    protected
    Definition Classes
    Mailer
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def performTransportSend(msg: MimeMessage): Unit

    Attributes
    protected
    Definition Classes
    Mailer
  36. lazy val pilotModeSend: Inject[(MimeMessage) ⇒ Unit]

    How to send a message in pilot mode.

    How to send a message in pilot mode. By default, use Transport.send(msg)

    Definition Classes
    Mailer
  37. lazy val productionModeSend: Inject[(MimeMessage) ⇒ Unit]

    How to send a message in production mode.

    How to send a message in production mode. By default, use Transport.send(msg)

    Definition Classes
    Mailer
  38. lazy val profileModeSend: Inject[(MimeMessage) ⇒ Unit]

    How to send a message in profile mode.

    How to send a message in profile mode. By default, use Transport.send(msg)

    Definition Classes
    Mailer
  39. lazy val properties: Properties

    Definition Classes
    Mailer
  40. def registerInjection[T](f: () ⇒ T)(implicit man: Manifest[T]): Unit

    Register a function that will inject for the given Manifest

    Register a function that will inject for the given Manifest

    Definition Classes
    SimpleInjector
  41. def sendMail(from: From, subject: Subject, rest: MailTypes*): Unit

    Asynchronously send an email.

    Asynchronously send an email.

    Definition Classes
    Mailer
  42. lazy val stagingModeSend: Inject[(MimeMessage) ⇒ Unit]

    How to send a message in staging mode.

    How to send a message in staging mode. By default, use Transport.send(msg)

    Definition Classes
    Mailer
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. lazy val testModeSend: Inject[(MimeMessage) ⇒ Unit]

    How to send a message in test mode.

    How to send a message in test mode. By default, log the message

    Definition Classes
    Mailer
  45. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. implicit def xmlToMailBodyType(html: NodeSeq): MailBodyType

    Definition Classes
    Mailer

Inherited from Mailer

Inherited from SimpleInjector

Inherited from Injector

Inherited from AnyRef

Inherited from Any