getMimeMessage().addHeader(header.getSanitizedName(), header.getSanitizedValue());
}
// Do the send manually, Transport.send gets the wrong transport
getMimeMessage().saveChanges();
Transport transport = getMailSession().getTransport();
transport.connect();
transport.sendMessage(getMimeMessage(), getMimeMessage().getAllRecipients());
transport.close();
}
catch (MessagingException e)
{