-
-
Save linyatis/cfb9b754e2dc81dacb46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GRAVE: Servlet.service() for servlet [default] in context with path [/TestingSimpleMail] threw exception [java.lang.RuntimeException: java.lang.IllegalArgumentException: Subject not defined for email template : forgetPassword] with root cause | |
java.lang.IllegalArgumentException: Subject not defined for email template : forgetPassword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void withTemplate() { | |
result.include("msg", "Enviando email com template!"); | |
Email email = this.templates.template("forgetPassword").to("JF", | |
"linyatis@gmail.com"); | |
try { | |
email.setSubject("Teste"); | |
mailer.asyncSend(email); | |
} catch (EmailException e) { | |
e.printStackTrace(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment