Skip to content

Instantly share code, notes, and snippets.

@chingovan
Created May 30, 2016 17:33
Show Gist options
  • Save chingovan/d81e13b369ec35732d1d2f97a56d0e88 to your computer and use it in GitHub Desktop.
Save chingovan/d81e13b369ec35732d1d2f97a56d0e88 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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment