[2.0.2][Scala][mailer-plugin]

123 views
Skip to first unread message

Helena Hjertén

unread,
May 10, 2012, 11:29:20 AM5/10/12
to play-framework

HI folks, 

I am trying to use the typesafe mailer plugin  and following the instructions here: 

https://github.com/typesafehub/play-plugins/tree/master/mailer

I just don´t seem to get the plugin to download correct because I cant seem to do the import successfully, thus failing already on: 

val mail = use[MailerPlugin].email

Here is my dependencies...

  val appDependencies = Seq(

    // Add your project dependencies here,

    "mysql" % "mysql-connector-java" % "5.1.18",

    // needed for selenium to work with firefox 12

    "org.seleniumhq.selenium" % "selenium-firefox-driver" % "2.21.0" % "test",

   // Mailer plugin from TypeSafe

    "com.typesafe" %% "play-plugins-mailer" % "2.0.2"

  )

I´m not very familiar with SBT, is there a problem with sbt versions? I use Play 2.0.1 and sbt 0.11.2. so far...

/Helena

Nilanjan

unread,
May 10, 2012, 1:39:35 PM5/10/12
to play-framework
Have you completed the following step?

add 1500:com.typesafe.plugin.CommonsMailerPlugin to your conf/
play.plugins

Nilanjan

Helena Hjertén

unread,
Jun 5, 2012, 10:12:01 AM6/5/12
to play-fr...@googlegroups.com
Actually I got my stuff to work. Forgot to run "play idea" again to get my new dependencies cisible in my IDE thoug...
/H

2012/6/5 Pascale Audet <audetp...@gmail.com>
Same problem : done all steps. I saw that there were problems with the Java version (fixed)... maybe the Scala code is wrong too.

val mail = use[MailerPlugin.class].email
              ^

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/7bmNdlLpVfYJ.

To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Xuefeng Wu

unread,
Jun 6, 2012, 4:55:31 AM6/6/12
to play-fr...@googlegroups.com
I meet these error in IDEA too, but the play project can work.

在 2012年6月5日星期二UTC+8下午9时48分12秒,Pascale Audet写道:
Reply all
Reply to author
Forward
0 new messages