Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When working with Emails in a plugin, a `MessagingException`must be caught. Include the bundle that contains this exception by default. ```java IMailerService mailerService = getService(IMailerService.class); MailSender sender = mailerService.getDefaultSender(); if (mailerService.isMailEnabled()) { try { for (String mailAddress : mailAddresses) { mailerService.sendMail(sender, mailAddress, "subject", "body", null); } } catch (MessagingException e) { throw new TeamRepositoryException(e.getMessage()); } ```
- Loading branch information