-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from GuySartorelli/pulls/master/cms5-compat
CMS 5 compatibility
- Loading branch information
Showing
5 changed files
with
63 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# Mailblock | ||
|
||
Adds email redirection options to the CMS. | ||
|
||
## Requirements | ||
* [SilverStripe CMS ^4](https://github.com/silverstripe/silverstripe-cms) | ||
|
||
* [SilverStripe admin ^5](https://github.com/silverstripe/silverstripe-admin) | ||
|
||
SilverStripe 4 support is available in the [2.0 branch](https://github.com/signify-nz/silverstripe-mailblock/tree/2.0) | ||
SilverStripe 3 support is available in the [1.0 branch](https://github.com/signify-nz/silverstripe-mailblock/tree/1.0) | ||
|
||
## Installation | ||
__Composer (recommended):__ | ||
|
||
``` | ||
composer require signify-nz/silverstripe-mailblock | ||
``` | ||
|
||
If you prefer you may also install manually: | ||
* Download the module from here https://github.com/signify-nz/silverstripe-mailblock/archive/master.zip | ||
* Extract the downloaded archive into your site root so that the destination folder is called silverstripe-mailblock. | ||
* Run dev/build?flush to regenerate the manifest | ||
|
||
## Usage | ||
|
||
All options are in the Settings -> Mailblock section of the CMS. Only users with the "Access to 'Mailblock' settings" permission will be able to configure Mailblock. | ||
|
||
## Limitations | ||
This module works by adding an additional SwiftMailer (the Mailer included with SilverStripe) plugin. If you are using a custom mailer, no email recipient rewritting will take place. | ||
|
||
This module works by adding an additional Symfony mailer (the Mailer included with SilverStripe) event subscriber. If you are using a custom mailer, no email recipient rewriting will take place. | ||
|
||
[User Guide](/docs/en/user_guide.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
--- | ||
Name: mailblockconfig | ||
After: | ||
- '#emailconfig' | ||
- '#mailer' | ||
--- | ||
SilverStripe\SiteConfig\SiteConfig: | ||
extensions: | ||
- Mailblock\extensions\MailblockSiteConfig | ||
|
||
SilverStripe\SiteConfig\SiteConfigLeftAndMain: | ||
extensions: | ||
- Mailblock\extensions\MailblockSiteConfigLeftAndMain | ||
SilverStripe\Control\Email\SwiftMailer: | ||
swift_plugins: | ||
- Mailblock\Email\MailblockPlugin | ||
|
||
SilverStripe\Core\Injector\Injector: | ||
Symfony\Component\EventDispatcher\EventDispatcherInterface.mailer: | ||
calls: | ||
- [addSubscriber, ['%$Mailblock\Email\MailblockMailSubscriber']] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters