Skip to content

Instantly share code, notes, and snippets.

@linyatis
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linyatis/cfb9b754e2dc81dacb46 to your computer and use it in GitHub Desktop.
Save linyatis/cfb9b754e2dc81dacb46 to your computer and use it in GitHub Desktop.
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
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