Sending Emails in Playframework 2.0

后端 未结 3 1792
广开言路
广开言路 2020-12-24 07:50

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

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 08:00

    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.

    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.

提交回复
热议问题