Skip to content

Commit

Permalink
Fixed mailer transport settings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Aug 7, 2022
1 parent b3857f9 commit f1eeeae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Campaign

## 2.1.4 - 2022-08-07
### Fixed
- Fixed a bug that prevented the mailer transport defined in the Campaign email settings from overriding the Craft email settings ([#319](https://github.com/putyourlightson/craft-campaign/issues/319)).

## 2.1.3 - 2022-08-02
### Fixed
- Fixed an error that occurred when creating contacts in the control panel.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "putyourlightson/craft-campaign",
"description": "Send and manage email campaigns, contacts and mailing lists.",
"version": "2.1.3",
"version": "2.1.4",
"type": "craft-plugin",
"homepage": "https://putyourlightson.com/plugins/campaign",
"license": "proprietary",
Expand Down
4 changes: 1 addition & 3 deletions src/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,7 @@ protected function getCpRoutes(): array
*/
private function _registerComponents(): void
{
if (!$this->has('mailer')) {
$this->set('mailer', fn() => $this->createMailer());
}
$this->set('mailer', fn() => $this->createMailer());
}

/**
Expand Down

0 comments on commit f1eeeae

Please sign in to comment.