Search in sources :

Example 1 with SendingResetPasswordEmailFailException

use of pl.pollub.cs.pentagoncafe.flare.exception.sendingEmail.SendingResetPasswordEmailFailException in project Flare-event-calendar by PollubCafe.

the class SecurityServiceImpl method sendResetPasswordEmail.

private void sendResetPasswordEmail(Email email) {
    try {
        checkArgument(email instanceof HtmlEmail);
        emailSender.send((HtmlEmail) email);
    } catch (MessagingException e) {
        e.printStackTrace();
        throw new SendingResetPasswordEmailFailException();
    }
}
Also used : SendingResetPasswordEmailFailException(pl.pollub.cs.pentagoncafe.flare.exception.sendingEmail.SendingResetPasswordEmailFailException) MessagingException(javax.mail.MessagingException) HtmlEmail(pl.pollub.cs.pentagoncafe.flare.component.email.HtmlEmail)

Aggregations

MessagingException (javax.mail.MessagingException)1 HtmlEmail (pl.pollub.cs.pentagoncafe.flare.component.email.HtmlEmail)1 SendingResetPasswordEmailFailException (pl.pollub.cs.pentagoncafe.flare.exception.sendingEmail.SendingResetPasswordEmailFailException)1