Package com.joshlong.userregistrationexample.jobs.util

Examples of com.joshlong.userregistrationexample.jobs.util.EmailUtils


                // then we send them a nice email message

                String email = user.getEmail();

                EmailUtils emailUtils = (EmailUtils) getApplicationContext().getBean("emailUtils");

                Map<String, String> tpl = loadTemplate("welcome_email");
                Map<String, Object> parameters = new HashMap<String, Object>();
                parameters.put("user", user);
                parameters.put("userIdHash", getUserManagmentService().getHashForUser(user.getId()));

                emailUtils.sendEmailMessage("theteam@theteam.com", new String[]{email}, tpl.get("subject"), tpl.get(TXT_KEY), tpl.get(HTML_KEY), parameters);

                getWorkflowService().completeTaskInstance(taskInstanceId);

            }
View Full Code Here


            log.info ( "SendConfirmationEmail userId:"+ userId) ;

            if (user != null) {
                String email = user.getEmail();
                EmailUtils emailUtils = (EmailUtils) getApplicationContext().getBean("emailUtils");
                Map<String, String> tpl = loadTemplate("confirmation_email");
                Map<String, Object> parameters = new HashMap<String, Object>();
                parameters.put("user", user);
                String uidHash = getUserManagmentService().getHashForUser(user.getId());
                parameters.put("userIdHash", uidHash);
                emailUtils.sendEmailMessage("theteam@theteam.com", new String[]{email}, tpl.get("subject"), tpl.get(TXT_KEY), tpl.get(HTML_KEY), parameters);
                getWorkflowService().completeTaskInstance(taskInstanceId);

            }

        }
View Full Code Here

TOP

Related Classes of com.joshlong.userregistrationexample.jobs.util.EmailUtils

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.