File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ MailerPlugin mail = play.api.Play.unsafeApplication().plugin(MailerPlugin.class)
25
25
mail. setSubject(" mailer" );
26
26
mail. addRecipient(" my@email.com" ," toaddress" );
27
27
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
31
31
mail. send( " text" );
32
+ // sends both text and html
33
+ mail. send( " text" , " <html>html</html>" );
32
34
33
35
```
34
36
@@ -40,10 +42,12 @@ val mail = use[MailerPlugin].email
40
42
mail.setSubject(" mailer" )
41
43
mail.addRecipient(" my@email.com" ," toaddress" )
42
44
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
46
48
mail.send( " text" )
49
+ // sends both text and html
50
+ mail.send( " text" , " <html>html</html>" )
47
51
48
52
```
49
53
You can’t perform that action at this time.
0 commit comments