0
我嘗試在grails中使用郵件插件時出現問題。我在Google中搜索的主要是Grails版本2郵件插件。使用Grails 3的郵件插件配置
我在buildConfig.groovy
和
sendMail {
to "[email protected]"
from "[email protected]"
subject "This is a test mail"
text "Hello, This is a test mail, how are you?"
}
在我的控制器功能
當我嘗試運行它一個
試圖使用
compile 'org.grails.plugins:mail:2.0.0.RC6'
設置,發生MailConnectException。我錯過了任何郵件插件配置爲Grails 3?或者我必須添加一些東西像grails 2在這個網站http://grails.asia/grails-mail-plugin-example application.groovy?