A simple Java wrapper for the Typesafe mailer plugin for Play! Framework 2.x
OTHER License
This plugin uses concepts from Play20StartApp to make sending emails (text, html, mixed) easier. A sample is included.
play-easymail currently needs Play! Framework 2.x
play-easymail is cross-tested with Java 1.6, Java 1.7 (Up to 0.6.x
) and Java 1.8 (from 0.7.0
)
master
branch contains the code for Play! Framework 2.6.x (play-easymail version 0.9.0
and up).2.5.x
branch contains the code for 2.5.x (play-easymail version 0.8 - 0.8.x
).2.4.x
branch contains the code for 2.4.x (play-easymail version 0.7 - 0.7.x
).2.3.x
branch contains the code for 2.3.x (play-easymail version 0.6 - 0.6.x
).2.2.x
branch contains the code for 2.2.x (play-easymail version 0.5 - 0.5.x
).2.1.x
branch contains the code for 2.1.x (play-easymail version 0.2 - 0.3.x
).2.0.x
is a maintenance branch for the 2.0.x series of Play! Framework (play-easymail version 0.1
).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).
Mailer.getDefaultMailer().sendMail(
"Your subject",
"Your text body",
"[email protected]"
);
You can also have a look at the sample for a more advanced use-case (content from templates and setting custom headers).
0.8.x
version.0.7.x
version.0.6.x
version.setReplyTo
method (thanks @cornelcroi)addCustomHeader
methodsendMail
convenience method for text-only mailssetReplyTo
method (thanks @cornelcroi)addCustomHeader
methodCopyright (c) 2012-2017 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.