diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java index 7a52d32..8c8c9b6 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java @@ -37,6 +37,9 @@ public class NewsletterSender { @ConfigProperty(name = "mulkcms.newsletter.time-zone") ZoneId newsletterTimeZone; + @ConfigProperty(name = "quarkus.mailer.from") + String senderAddress; + @PersistenceContext EntityManager em; @CheckedTemplate @@ -100,6 +103,7 @@ public class NewsletterSender { var sendJob = mailText .subject(String.format("MulkCMS newsletter #%d", newsletterNumber)) + .to(senderAddress) .bcc(subscriberEmails) .send(); sendJob.toCompletableFuture().get(10000, TimeUnit.SECONDS); |