Skip to content

A simple Java wrapper for the Typesafe mailer plugin for Play! Framework 2.x

License

Notifications You must be signed in to change notification settings

rui-ferreira/play-easymail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-easymail - an extension to the Typesafe mailer plugin for Play! Framework 2.x (Java)

This plugin uses concepts from Play20StartApp to make sending emails (text, html, mixed) easier. A sample is included.

Version information

play-easymail currently needs Play! Framework 2.x

  • The master branch contains the code for Play! Framework 2.3.x (play-easymail version 0.6.0 and up).
  • The 2.2.x branch contains the code for 2.2.x (play-easymail version 0.5 - 0.5.x).
  • The 2.1.x branch contains the code for 2.1.x (play-easymail version 0.2 - 0.3.x).
  • The 2.0.x is a maintenance branch for the 2.0.x series of Play! Framework (play-easymail version 0.1).

Build status

Build Status

Features

Sending email through an easy-to-use API and allowing for text-only, html-only and mixed emails. Preferably based on Play! templates (see sample).

Code sample

Mailer.getDefaultMailer().sendMail(
    "Your subject",
    "Your text body",
    "recipient@email.com"
);

You can also have a look at the sample for a more advanced use-case (content from templates and setting custom headers).

Versions

  • 0.6.3 [2014-07-05]
    • Added setReplyTo method (thanks @cornelcroi)
  • 0.6.2 [2014-06-30]
    • Fix addCustomHeader method
    • Add sendMail convenience method for text-only mails
    • Add to sample: show advanced Mail example (add Reply-To header)
  • 0.6.1 [2014-06-29]
    • Add Scala 2.10.x binary to repository
    • Test against Scala 2.10.x
    • ATTENTION: Binaries are not published in ivy style any more, please update your resolver URLs (see #189)
  • 0.6.0 [2014-06-10]
    • Version for Play 2.3.x
  • 0.5.2 [2014-07-05]
    • Added setReplyTo method (thanks @cornelcroi)
    • Last version for Play 2.2.x
  • 0.5.1 [2014-07-01]
    • Backport fix for addCustomHeader method
  • 0.5 [2013-10-23]
    • First version for Play 2.2.x
  • 0.3 [2013-09-01]
    • A mail can now have custom headers (see issue #6) - thanks @jtammen
  • 0.2 [2013-02-06]
    • Version for 2.1.0
  • 0.1 [2012-07-09]
    • Initial release

License

Copyright (c) 2012-2014 Joscha Feth

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A simple Java wrapper for the Typesafe mailer plugin for Play! Framework 2.x

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 88.9%
  • Scala 10.5%
  • Shell 0.6%