@Override
    public void sendPlaintext(String toEmail, String toName, String subject, String body, Map<String, String> headers)
         throws EmailException {
        try {
            SimpleEmail email = new SimpleEmail();
            setCommonConfigElements(email, toName, toEmail, subject, headers);
            email.setMsg(body);
            email.send();
        } catch (org.apache.commons.mail.EmailException e) {
            throw new EmailException(e);
        }
        LOGGER.debug("Plaintext-only email notification sent. \n"
                         + "to: {0} \n"
                         + "toName: {1} \n"
                         + "subject: {2} \n"
                         + "body: {3} \n"
                         + "headers: {4}",
             toEmail, toName, subject, body, headers);
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/rest-impl/src/main/java/io/apiman/manager/api/notifications/email/EmailSender.java