Connect the SMTP transport before sending a mail.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 25 Mar 2014 06:12:32 +0000 (07:12 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 25 Mar 2014 06:12:32 +0000 (07:12 +0100)
src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java

index 180b23f..0a0aca7 100644 (file)
@@ -109,6 +109,7 @@ public class EmailAction implements Action {
                        multipart.addBodyPart(htmlPart);
                        message.setContent(multipart);
 
+                       transport.connect();
                        transport.sendMessage(message, message.getAllRecipients());
                } catch (MessagingException me1) {
                        /* swallow. */