Examples of MailManager


Examples of com.tll.mail.MailManager

        final IUserRef user = handler.getUserRef(emailAddress);
        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) {
        exceptionToStatus(nfe, status);
        context.getExceptionHandler().handleException(nfe);
View Full Code Here

Examples of com.tll.mail.MailManager

  private static final Log log = LogFactory.getLog(ForgotPasswordServiceBootstrapper.class);

  @Override
  public void startup(Injector injector, ServletContext servletContext) {
    log.debug("Creating the ForgotPasswordServiceContext...");
    final MailManager mailManager = injector.getInstance(MailManager.class);
    final IExceptionHandler exceptionHandler = injector.getInstance(IExceptionHandler.class);
    final IForgotPasswordHandler handler = injector.getInstance(IForgotPasswordHandler.class);
    servletContext.setAttribute(ForgotPasswordServiceContext.KEY, new ForgotPasswordServiceContext(
        handler, mailManager, exceptionHandler));
  }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.server.mail.MailManager

                throw new WebProtegeConfigurationException(MAIL_SMTP_PASSWORD_MISSING_MESSAGE);
            }
        }
        String appName = WebProtegeProperties.get().getApplicationName();
        String hostName = WebProtegeProperties.get().getApplicationHostName();
        App.get().setMailManager(new MailManager(appName, hostName,
                mailProperties, new WebProtegeLoggerMessagingExceptionHandler()));

    }
View Full Code Here

Examples of net.sf.collabreview.core.mails.MailManager

   *
   * @return the newly created MailManager
   * @throws Exception if creating the MailManager fails for some reason
   */
  public MailManager newMailManager() throws Exception {
    MailManager mailManager = ((MailManagerFactory) getFactory(get(configurationData, "mailManagerFactoryConfiguration"))).create();
    logger.debug("MailManager subsystem created by its factory");
    return mailManager;
  }
View Full Code Here

Examples of talkfeed.MailManager

    //update by jid (email)
    //String jid = args.get("jid");
   
    long id = Long.valueOf(sid);
   
    MailManager mm = new MailManager();
    mm.mailUser(id);
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.