class RecipientToLowerCase extends GenericMailet {

    @Override
    public void service(Mail mail) throws MessagingException {
        mail.setRecipients(mail.getRecipients().stream()
            .map(Throwing.function(this::toLowerCase))
            .collect(Guavate.toImmutableList()));
    }

}