Package at.riemers.zero.email.model

Examples of at.riemers.zero.email.model.Email


        return null;

    }
   
    private void sendPasswordNotification(String subject, String refType, String emailAddress, String template, ZeroUser user) {
        Email email = new Email();
        email.setRecepient(emailAddress);
        email.setSender("office@mares.com");
        email.setSubject(subject);
        email.setReferenceType(refType);
        email.setReferenceId(user.getUsername());
        VelocityContext context = new VelocityContext();
        context.put("firstname", user.getPerson().getFirstname());
        context.put("lastname", user.getPerson().getLastname());
        context.put("password", user.getPassword());
        context.put("username", user.getUsername());

        email.setMsgText(templateEngine.createHtmlMessage(template, context));
        emailDao.makePersistent(email);
    }
View Full Code Here


            widget.setMessage(emailForm.getMessage());
            widget.setSubject(emailForm.getSubject());

            int count = 0;
            for (String receiver : widget.getReceivers()) {
                Email email = new Email();
                email.setSender(emailForm.getSender());

                email.setRecepient(receiver);
                email.setMsgText(emailForm.getMessage());
                email.setSubject(emailForm.getSubject());
                email.setReferenceType(widget.getReferenceType());
                email.setReferenceId(widget.getReferenceId());
                emailDao.makePersistent(email);
                count ++;
            }

            view.setMessage(new Message("base.email.added", Message.MSG_INFO, Integer.toString(count)));
View Full Code Here

TOP

Related Classes of at.riemers.zero.email.model.Email

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.