Search in sources :

Example 1 with SendingActivationEmailFailException

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

the class RegistrationServiceImpl method sendActivationEmail.

private void sendActivationEmail(Email email) {
    try {
        checkArgument(email instanceof HtmlEmail);
        emailSender.send((HtmlEmail) email);
    } catch (MessagingException e) {
        e.printStackTrace();
        throw new SendingActivationEmailFailException();
    }
}
Also used : MessagingException(javax.mail.MessagingException) SendingActivationEmailFailException(pl.pollub.cs.pentagoncafe.flare.exception.sendingEmail.SendingActivationEmailFailException) 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 SendingActivationEmailFailException (pl.pollub.cs.pentagoncafe.flare.exception.sendingEmail.SendingActivationEmailFailException)1