Skip to content

Commit

Permalink
fix: Fixed placeholders in subject
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Feb 28, 2024
1 parent a090f5d commit a4d30ed
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ public static CompletableFuture<Boolean> 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)
);
});
}

Expand Down

0 comments on commit a4d30ed

Please sign in to comment.