public void sendMessage(MimeMessage message) {
        if (message != null) {
            sendMessages(Collections.singletonList(message));
        }
        else {
            Log.error("Cannot add null email message to queue.");
        }
    }
Sends a JavaMail message. To create a message, use the
{@link #createMimeMessage()} method.

@param message the message to send.
xmppserver/src/main/java/org/jivesoftware/util/EmailService.java