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.
Passwords cannot be accessed via System.
Passwords cannot be accessed via System.getProperty. Instead, we provide a means of explicitlysetting the authenticator.
Synchronously send an email.
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
Set the mail.
Set the mail.charset property to something other than UTF-8 for non-UTF-8 mail.
Custom properties for the JNDI session
How to send a message in dev mode.
How to send a message in dev mode. By default, use Transport.send(msg)
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)
The host that should be used to send mail.
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")
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
Use the mailer resource in your container by specifying the JNDI name
How to send a message in pilot mode.
How to send a message in pilot mode. By default, use Transport.send(msg)
How to send a message in production mode.
How to send a message in production mode. By default, use Transport.send(msg)
How to send a message in profile mode.
How to send a message in profile mode. By default, use Transport.send(msg)
Register a function that will inject for the given Manifest
Register a function that will inject for the given Manifest
Asynchronously send an email.
How to send a message in staging mode.
How to send a message in staging mode. By default, use Transport.send(msg)
How to send a message in test mode.
How to send a message in test mode. By default, log the message
This trait implmenets the mail sending. You can create subclasses of this class/trait and implement your own mailer functionality