From 5a536ce9ceeac8b431c24b79796835bd9271cfcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 25 Mar 2014 07:12:32 +0100 Subject: [PATCH] Connect the SMTP transport before sending a mail. --- src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java b/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java index 180b23f..0a0aca7 100644 --- a/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java +++ b/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java @@ -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. */ -- 2.7.4