trait Mailer extends SimpleInjector
This trait implmenets the mail sending. You can create subclasses of this class/trait and implement your own mailer functionality
- Alphabetic
- By Inheritance
- Mailer
- SimpleInjector
- Injector
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- 
      
      
      
        
      
    
      
        
        class
      
      
        
              MsgSender
             extends SpecializedLiftActor[MessageInfo]
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        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. 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. - Definition Classes
- SimpleInjector
 
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
-  implicit def adListToAdArray(in: List[AddressType]): Array[Address]
-  implicit def addressToAddress(in: AddressType): Address
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        authenticator: Box[Authenticator]
      
      
      Passwords cannot be accessed via System.getProperty. Passwords cannot be accessed via System.getProperty. Instead, we provide a means of explicitlysetting the authenticator. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        blockingSendMail(from: From, subject: Subject, rest: MailTypes*): Unit
      
      
      Synchronously send an email. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        buildMailBody(tab: MailBodyType): BodyPart
      
      
      Given a MailBodyType, convert it to a javax.mail.BodyPart. Given a MailBodyType, convert it to a javax.mail.BodyPart. You can override this method if you add custom MailBodyTypes - Attributes
- protected
 
-  def buildProps: Properties
- 
      
      
      
        
      
    
      
        
        lazy val
      
      
        charSet: String
      
      
      Set the mail.charset property to something other than UTF-8 for non-UTF-8 mail. 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        customProperties: Map[String, String]
      
      
      Custom properties for the JNDI session 
- 
      
      
      
        
      
    
      
        
        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) 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        firstNode(in: NodeSeq): Node
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        host: String
      
      
      The host that should be used to send mail. 
- 
      
      
      
        
      
    
      
        
        val
      
      
        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") 
- 
      
      
      
        
      
    
      
        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
- SimpleInjector → Injector
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        jndiName: Box[String]
      
      
      Use the mailer resource in your container by specifying the JNDI name 
-  lazy val jndiSession: Box[Session]
-  def msgSendImpl(from: From, subject: Subject, info: List[MailTypes]): Unit
- 
      
      
      
        
      
    
      
        
        lazy val
      
      
        msgSender: MsgSender
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        performTransportSend(msg: MimeMessage): Unit
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        
        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) 
- 
      
      
      
        
      
    
      
        
        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) 
- 
      
      
      
        
      
    
      
        
        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) 
-  lazy val properties: Properties
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        sendMail(from: From, subject: Subject, rest: MailTypes*): Unit
      
      
      Asynchronously send an email. 
- 
      
      
      
        
      
    
      
        
        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) 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        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 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
-  implicit def xmlToMailBodyType(html: NodeSeq): MailBodyType