From: David ‘Bombe’ Roden Date: Tue, 25 Mar 2014 06:12:32 +0000 (+0100) Subject: Connect the SMTP transport before sending a mail. X-Git-Tag: v2~246 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5a536ce9ceeac8b431c24b79796835bd9271cfcf;p=rhynodge.git Connect the SMTP transport before sending a mail. --- 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. */