Skip to content

Instantly share code, notes, and snippets.

@chingovan
Last active May 30, 2016 17:41
Show Gist options
  • Save chingovan/d97d5e22ee213fc3c2c78da0d36e9ac0 to your computer and use it in GitHub Desktop.
Save chingovan/d97d5e22ee213fc3c2c78da0d36e9ac0 to your computer and use it in GitHub Desktop.
public void sendEmail(ActionRequest actionRequest, ActionResponse actionResponse) {
String email = ParamUtil.getString(actionRequest, "email");
String subject = ParamUtil.getString(actionRequest, "subject");
String content = ParamUtil.getString(actionRequest, "content");
System.out.println("Sending to " + email);
System.out.println("Subject: " + subject); System.out.println("Content: " + content);
actionResponse.setRenderParameter("mvcPath", "/html/multirender/view_email.jsp");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment