我正在使用Grails 3.0.1进行项目,需要为用户发送电子邮件。
我当时想使用Gmail帐户通过smtp发送。我读到有关该插件“:mail:1.0.7” 的信息,但没有在grails 3.0.1上安装。
有什么方法可以发送此版本的电子邮件?
谢谢
最佳答案
通过将mail
添加到compile 'org.grails.plugins:mail'
中来安装build.gradle
插件,然后阅读doco here。
如果您在安装时遇到问题,请尝试compile 'org.grails.plugins:mail:2.0.0.RC1'
。
https://stackoverflow.com/questions/32262588/