在Playframework 2.0中发送电子邮件 [英] Sending Emails in Playframework 2.0

查看:98
本文介绍了在Playframework 2.0中发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Playframework 2.0中,发送电子邮件似乎并不那么简单(请参阅

In Playframework 2.0, it does not appear to be as simple to send emails (see comments on Using sendmail as SMTP server in Play Framework) as it did in Play 1.x. There is no out of the box mailer functionality... so, how do I send emails?

推荐答案

Playframework 2.x需要Mail插件才能正常工作.它没有添加到内核中,因为开发人员认为使Email正常工作很简单,因此决定最好创建一个插件.但是,在Google网上论坛上出现的一连串消息表明他们弄错了...人们期望与Play 1.x具有相同的功能.

Playframework 2.x requires a plugin for Mail to work. It was not added to the core because developers felt it was trivial to get Email working, so decided it was better to create a plugin. However, the quick flurry of messages on google groups suggested they got it wrong...people expected the same functionality as Play 1.x.

但是,正如您在社区中所期望的那样,一个插件被快速构建.参见 https://github.com/playframework/play-mailer .

As you expect from the community though, a plugin was quickly built. See https://github.com/playframework/play-mailer.

还将寻找更多的插件,但这是核心开发人员支持的类型安全的插件,因此我希望它是维护得最好的插件.

There will be more plugins to look out for as well, but this is the typesafe supported one by a core developer, so I expect it to be the best maintained.

这篇关于在Playframework 2.0中发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆