@Override
public void send(MimeMessage mimeMessage) throws MessagingException {
Transport transport = getTransport(getSession());
LOG.debug("Connecting to {}:{}", host, port);
transport.connect(getHost(), getPort(), getUsername(), getPassword());
try {
if (mimeMessage.getSentDate() == null) {
mimeMessage.setSentDate(new Date());
}