private void sendMessage(final String from,
                             final String subject,
                             final String body,
                             final String to) throws MessagingException {
        final Properties mailProps = this.getMailProperties(smtpServer.getPort());
        final Session session = Session.getInstance(mailProps, null);
        final MimeMessage msg = this.createMessage(session, from, to, subject, body);
        Transport.send(msg);
    }
See
<a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1474700&amp;group_id=78413&amp;atid=553186">...</a>
for discussion about this bug

@throws IOException        on IO error
@throws MessagingException on messaging error
src/test/java/de/gessnerfl/fakesmtp/smtp/SmtpComplianceIntegrationTest.java