play SMTP Configuratoin
2016-04-25 15:25
513 查看
Use a mock mailer, by entering the following in conf/application.conf
smtp.mock=trueThe mock option will render email output to the console. If you are using the Activator UI, you’ll be able to see the mail output in the logs on the “Run” tab.
Mention the SMTP server details in conf/application.conf
smtp.host=smtp.gmail.comsmtp.port=587
smtp.user=”user@gmail.com”
smtp.password=”password”
smtp.ssl=true
mail.from=”PlayStartApp@yourdomain.com”
mail.sign=The PlayStartApp Team
You can use gmail servers for sending mails as well, which I have mentioned above.
Alternatively, in the “playStartApp”, just rename conf/mail.conf.example to conf/mail.conf and move all your SMTP related configuration here. Please note that conf/mail.conf is mentioned in .gitignore.
Resources (Play Documentation):
Mail configuration parameters
SMTP Configuratoin
相关文章推荐
- 解决play out of memory的问题
- Play Framework 安装
- debian7 安装flash player
- play frameword 如何实现在页面表单效验用户名是否存在
- play集群部署问题
- http缓存
- play中使用cookie
- play router plugin
- Google Play Service out of date问题解决
- could not find implicit value for parameter extractor 问题的解决
- [ERROR] IO error while decoding 路径 routes_reverseRouting.scala with UTF-8 问题解决
- Anatomy of a Play application 解析play目录结构
- Play之Scala-Web项目运行流程-简单分析(2)
- play框架配置自定义404页面
- 应用市场地址
- JAVA,Play framework 入门,打印hello word
- play frameword 连接数据库, 查询数据。简单的表单提交
- play framework框架进Debug,右键项目build path 空白(no actions available)等解决问题
- java的play framework安装配置
- Android自定义系列(2)——拟物化类弹窗式视频播放窗口