Package com.jpoweredcart.common.system.email

Examples of com.jpoweredcart.common.system.email.EmailMessage


    params.put("email", email);
    params.put("ipAddress", request.getRemoteAddr());
   
    String template = templateService.renderTemplate("/admin/email/passwordReset", params);
   
    EmailMessage message = new EmailMessage();
    message.setTo(email);
    message.setBodyHtml(template);
    message.setSubject(message(request, "text.subject"));
    emailService.send(message);
   
    redirect.addFlashAttribute("msg_success", message(request, "text.success"));
   
    return "redirect:/admin/common/login";
View Full Code Here


    model.put("image", image);
    model.put("code", voucher.getCode());
    model.put("storeName", storeName);
    model.put("storeUrl", storeUrl);
   
    EmailMessage email = new EmailMessage();
    email.setTo(voucher.getToEmail());
   
    email.setFrom(getSettingService().getConfig(SettingKey.CFG_EMAIL));
    email.setSenderName(storeName);
    String subject = MessageFormat.format(messageMap.get("text.subject"), voucher.getFromName());
    email.setSubject(subject);
    String text = templateService.renderTemplate("/admin/email/voucher", model);
    email.setBodyHtml(text);
   
    emailService.send(email);
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.system.email.EmailMessage

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.