playframework / play-plugins

CachePlugin
444 stars 161 forks source link

Outdated Mailer documentation #5

Closed cbr-appear closed 12 years ago

cbr-appear commented 12 years ago

The line to add to Build.scala should be "com.typesafe" %% "play-plugins-mailer" % "2.0" (notice the double percent characters)

The line to add to play.plugins should look like 1001:com.typesafe.plugin.notifiers.CommonsMailerPlugin

The sendHtml("<html>html</html>") function does not exist in the MailerPlugin class. send(" ", "<html>html</html>") can be used instead. (yes, the first argument mustn't be an empty string).

pk11 commented 12 years ago

I also republished the plugin. Thanks!

hanguokai commented 12 years ago

sendHtml doesn't work. Because TextMsg is empty: def sendHtml(bodyHtml: String): Unit = send("", bodyHtml) Apache commons mail throw a exception

org.apache.commons.mail.EmailException: Invalid message supplied
    at org.apache.commons.mail.HtmlEmail.setTextMsg(HtmlEmail.java:131)
pk11 commented 12 years ago

thanks, I believe it's fixed now in 2.0.1 version