From a4d30edfb6a3d5ac95ccab350823447a314c1e30 Mon Sep 17 00:00:00 2001 From: carm Date: Thu, 29 Feb 2024 07:50:37 +0800 Subject: [PATCH] fix: Fixed placeholders in subject --- .../plugin/votepassmailer/manager/MailManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/artformgames/plugin/votepassmailer/manager/MailManager.java b/src/main/java/com/artformgames/plugin/votepassmailer/manager/MailManager.java index 82f8271..5408531 100644 --- a/src/main/java/com/artformgames/plugin/votepassmailer/manager/MailManager.java +++ b/src/main/java/com/artformgames/plugin/votepassmailer/manager/MailManager.java @@ -52,7 +52,11 @@ public static CompletableFuture sendEmail(@NotNull String receiver, @No File contentFile = new File(Main.getInstance().getDataFolder(), contentPath); return CompletableFuture.supplyAsync(() -> { Main.debugging("Trying to send email to " + receiver + " ..."); - return MailManager.sendEmail(createSession(), receiver, subject, readContent(contentFile, placeholders)); + return MailManager.sendEmail( + createSession(), receiver, + setPlaceholders(subject, placeholders), + readContent(contentFile, placeholders) + ); }); }