Here are the examples of the java api play.libs.Mail.send() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
16
View Complete Implementation : Main.java
Copyright GNU General Public License v3.0
Author : openseedbox
Copyright GNU General Public License v3.0
Author : openseedbox
public static void testEmail() {
try {
SimpleEmail se = new SimpleEmail();
se.setFrom("[email protected]");
se.addTo("[email protected]");
se.setSubject("Test email from myseedbox");
se.setMsg("Testy Testy test");
Mail.send(se);
} catch (EmailException ex) {
resultError(ex.toString());
}
result("Yay!");
}