A Play 2 plugin providing a scala wrapper to simple-java-mail
Put '400:mail.MailPlugin' into conf/play.plugins to make it work.
400:mail.MailPlugin
conf/play.plugins
Recognized configuration properties (to be set in application.conf):
application.conf
true
localhost
25
Code snippet:
import mail._ import Mail._ val attachment = Source.fromBytes("Ninja should wear black".toCharArray.map(_.toByte)) Mail() .from("sender", "sender@example.com") .to("receiver", "receiver@example.com") .withSubject("A subject") .withText("body") .withAttachments(Attachment("ninja code", attachment, "text/plain") .send()
Mail instance builder
Play plugin implementation for mailer
Provides Mail instance factory method, case classes and implicits needed to make it work
Factory for mailer actors (MailActor and MailActorMock).
A Play 2 plugin providing a scala wrapper to simple-java-mail
Put '
400:mail.MailPlugin
' intoconf/play.plugins
to make it work.Recognized configuration properties (to be set in
application.conf
):true
localhost
25
Code snippet: