您的位置:首页 > 编程语言 > PHP开发

play SMTP Configuratoin

2016-04-25 15:25 513 查看

Use a mock mailer, by entering the following in conf/application.conf

smtp.mock=true

The 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.com

smtp.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