Skip to content

Commit 74cc683

Browse files
committed
Update mailer/README.md
1 parent 676848a commit 74cc683

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

mailer/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ MailerPlugin mail = play.api.Play.unsafeApplication().plugin(MailerPlugin.class)
2525
mail.setSubject("mailer");
2626
mail.addRecipient("my@email.com","toaddress");
2727
mail.addFrom("Peter Hausel <noreply@email.com>");
28-
//sends html and text, text can be empty
29-
mail.send( "", "<html>html</html>" );
30-
//sends ```text/text```
28+
//sends html
29+
mail.sendHtml("<html>html</html>" );
30+
//sends text/text
3131
mail.send( "text" );
32+
//sends both text and html
33+
mail.send( "text", "<html>html</html>");
3234

3335
```
3436

@@ -40,10 +42,12 @@ val mail = use[MailerPlugin].email
4042
mail.setSubject("mailer")
4143
mail.addRecipient("my@email.com","toaddress")
4244
mail.addFrom("Peter Hausel <noreply@email.com>")
43-
//sends html and text, text can be empty
44-
mail.send( "", "<html>html</html>" )
45-
//sends ```text/text```
45+
//sends html
46+
mail.sendHtml("<html>html</html>" )
47+
//sends text/text
4648
mail.send( "text" )
49+
//sends both text and html
50+
mail.send( "text", "<html>html</html>")
4751

4852
```
4953

0 commit comments

Comments
 (0)