public void sendMail( StandardMessage sm ) {
log.debug( "sendMail: subject: " + sm.getSubject());
System.out.println( "sending email" );
StandardMessageFactory smf = new StandardMessageFactoryImpl();
MimeMessage mm = newMessage();
smf.toMimeMessage( sm, mm );
sendMail( mm );
}