Package edu.stanford.bmir.protege.web.server.mail

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


    public ResetPasswordMailer(MailManager mailManager) {
        this.mailManager = mailManager;
    }

    public void sendEmail(final String emailAddress, final String pwd) {
        mailManager.sendMail(emailAddress, SUBJECT, String.format(BODY_TEMPLATE, pwd), new MessagingExceptionHandler() {
            @Override
            public void handleMessagingException(MessagingException e) {
                logger.info("An password reset email could not be sent to %s.  The password was reset to %s.",
                            emailAddress,
                            pwd);
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.server.mail.MessagingExceptionHandler

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.