// Reuse one Transport object for sending all your messages
// for better performance
Transport t = new AWSJavaMailTransport(session, null);
t.connect();
t.sendMessage(msg, null);
// Close your transport when you're completely done sending
// all your messages
t.close();
} catch (AddressException e) {