Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending Emails in Playframework 2.0

Tags:

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?

like image 669
Codemwnci Avatar asked May 08 '12 05:05

Codemwnci


1 Answers

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.

like image 144
Codemwnci Avatar answered Sep 26 '22 07:09

Codemwnci