Package com.tll.mail

Examples of com.tll.mail.MailRouting


        final String rp = handler.resetPassword(user.getId());
        data.put("username", user.getUsername());
        data.put("emailAddress", user.getEmailAddress());
        data.put("password", rp);
        final MailManager mailManager = context.getMailManager();
        final MailRouting mr = mailManager.buildAppSenderMailRouting(user.getEmailAddress());
        final IMailContext mailContext = mailManager.buildTextTemplateContext(mr, EMAIL_TEMPLATE_NAME, data);
        mailManager.sendEmail(mailContext);
        status.addMsg("Password reminder email was sent.", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
      catch(final EntityNotFoundException nfe) {
View Full Code Here


        String dfltToName = config.getString(ConfigKeys.DEFAULT_TO_NAME.getKey());
        String dfltToAddress = config.getString(ConfigKeys.DEFAULT_TO_ADDRESS.getKey());

        final NameEmail dfltSender = new NameEmail(dfltFromName, dfltFromAddress);
        final NameEmail dfltRecipient = new NameEmail(dfltToName, dfltToAddress);
        final MailRouting mr = new MailRouting();
        mr.setSender(dfltSender);
        mr.addRecipient(dfltRecipient);
        return mr;
      }
    }).in(Scopes.SINGLETON);

    // PrimaryMailSender
View Full Code Here

TOP

Related Classes of com.tll.mail.MailRouting

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.