🔊 Log recipients’ email addresses main
authorDavid Roden <bombe@pterodactylus.net>
Sat, 21 Dec 2024 08:32:59 +0000 (09:32 +0100)
committerDavid Roden <bombe@pterodactylus.net>
Sat, 21 Dec 2024 08:32:59 +0000 (09:32 +0100)
src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java

index 6baa0a2..d27b8a9 100644 (file)
@@ -20,6 +20,7 @@ package net.pterodactylus.rhynodge.actions;
 import static java.lang.System.getProperties;
 import static javax.mail.Session.getInstance;
 
+import java.util.Arrays;
 import java.util.Properties;
 
 import javax.mail.Message.RecipientType;
@@ -117,6 +118,7 @@ public class EmailAction implements Action {
                        if (!transport.isConnected()) {
                                transport.connect();
                        }
+                       logger.info("Sending email to " + Arrays.toString(message.getAllRecipients()) + "...");
                        transport.sendMessage(message, message.getAllRecipients());
                } catch (MessagingException me1) {
                        logger.error("Could not send email!", me1);