Skip to content

Commit

Permalink
Release 1.1.10
Browse files Browse the repository at this point in the history
Include "To:" header to avoid mj_resend error with majordomo
  • Loading branch information
mziech committed Mar 5, 2024
1 parent 3867ecf commit d28d148
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.10] - 2024-03-05
- Include proper "To:" header to avoid resend error with Majordomo

## [1.1.9] - 2024-02-03
- Verified compatibility with Nextcloud 28

Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The following section types are supported:

For each calendar, the relative timespan can be configured and the list entries can be formatted using a simple placeholder-language.
</description>
<version>1.1.9</version>
<version>1.1.10</version>
<licence>agpl</licence>
<author mail="marco+nc@ziech.net" homepage="https://github.com/mziech">Marco Ziech</author>
<namespace>CalendarNews</namespace>
Expand Down
1 change: 1 addition & 0 deletions lib/Service/NewsletterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function send(array $recipients, $subject) {
$template = $this->buildTemplate($config);
$msg = $this->mailer->createMessage();
$msg->setBcc($recipients);
$msg->setTo(["undisclosed-recipients:;"]); // avoid resend error with majordomo
$msg->setPlainBody($template->renderText());
$msg->setHtmlBody($template->renderHtml());
$msg->setSubject($subject);
Expand Down

0 comments on commit d28d148

Please sign in to comment.