小编Par*_*hah的帖子

play activator - runtimeException:需要在application.conf中设置smtp.host才能使用此插件(或将smtp.mock设置为true)

我正在尝试运行名为"playStartApp"的播放激活模板.但是,它给了我以下运行时异常:

RuntimeException: smtp.host needs to be set in application.conf in order to use this plugin (or set smtp.mock to true)\

    java.lang.RuntimeException: smtp.host needs to be set in application.conf in order to use this plugin (or set smtp.mock to true)
         com.typesafe.plugin.CommonsMailerPlugin$$anonfun$4.apply(MailerPlugin.scala:329)
         com.typesafe.plugin.CommonsMailerPlugin$$anonfun$4.apply(MailerPlugin.scala:329)
         scala.Option.getOrElse(Option.scala:120)
         com.typesafe.plugin.CommonsMailerPlugin.mailerInstance$lzycompute(MailerPlugin.scala:329)
         com.typesafe.plugin.CommonsMailerPlugin.mailerInstance(MailerPlugin.scala:326)
         com.typesafe.plugin.CommonsMailerPlugin.onStart(MailerPlugin.scala:343)
         play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)`


I tried both:
- set mail.smtp=mock

- mail.smtp.host=smtp.gmail.com
mail.smtp.user=yourGmailLogin
mail.smtp.pass=yourGmailPassword
mail.smtp.channel=ssl

pls suggest how to resolve this?
Run Code Online (Sandbox Code Playgroud)

exception playframework playframework-2.0 typesafe-activator

5
推荐指数
1
解决办法
1509
查看次数