diff --git a/server/src/main/java/edu/sjsu/moth/server/service/EmailService.java b/server/src/main/java/edu/sjsu/moth/server/service/EmailService.java index 09393b4..8a400b5 100644 --- a/server/src/main/java/edu/sjsu/moth/server/service/EmailService.java +++ b/server/src/main/java/edu/sjsu/moth/server/service/EmailService.java @@ -182,7 +182,7 @@ public void listenForEmail(BiFunction receive) { public @NotNull CompletableFuture sendMail(EmailPopulatingBuilder emailBuilder) { var dkimCfg = DkimConfig.builder().dkimPrivateKeyData(dkimPrivateKey).dkimSelector("moth") .dkimSigningDomain(MothConfiguration.mothConfiguration.getServerName()).build(); - return mailer.sendMail(emailBuilder.signWithDomainKey(dkimCfg).buildEmail()); + return mailer.sendMail(emailBuilder.buildEmail()); } /**