-
Notifications
You must be signed in to change notification settings - Fork 16
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 #23 from wilr/master
SilverStripe 4
- Loading branch information
Showing
7 changed files
with
311 additions
and
365 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mappings: | ||
SESMailer: Symbiote\SilverStripeSESMailer\Mail\SESMailer | ||
SESQueuedMail: Symbiote\SilverStripeSESMailer\Jobs\SESQueuedMail |
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 |
---|---|---|
|
@@ -7,12 +7,12 @@ to enable the mailer | |
--- | ||
Name: AWSConfig | ||
--- | ||
Injector: | ||
Mailer: | ||
class: SESMailer | ||
SilverStripe\Core\Injector\Injector: | ||
SilverStripe\Control\Email\Mailer: | ||
class: Symbiote\SilverStripeSESMailer\Mail\SESMailer | ||
constructor: | ||
config: | ||
credentials: | ||
credentials: | ||
key: YourKey | ||
secret: YourSecret | ||
region: us-west-2 | ||
|
@@ -21,23 +21,25 @@ Injector: | |
``` | ||
If your SES account is configured with a single 'from' address having being | ||
verified, you can set an 'always from' email address which will always be the | ||
If your SES account is configured with a single 'from' address having being | ||
verified, you can set an 'always from' email address which will always be the | ||
'From:' header, with the 'reply-to:' header set based on the calling code's | ||
'From' variable. Just add | ||
``` | ||
Injector: | ||
Mailer: | ||
SilverStripe\Core\Injector\Injector: | ||
SilverStripe\Control\Email\Mailer: | ||
properties: | ||
alwaysFrom: [email protected] | ||
``` | ||
Emails will be sent through the QueuedJobs module if it is installed. You can set the following configuration to bypass this behaviour even if QueuedJobs is installed | ||
Emails will be sent through the QueuedJobs module if it is installed. You can | ||
set the following configuration to bypass this behaviour even if QueuedJobs is | ||
installed: | ||
``` | ||
Injector: | ||
Mailer: | ||
properties: | ||
useQueuedJobs: false | ||
SilverStripe\Core\Injector\Injector: | ||
SilverStripe\Control\Email\Mailer: | ||
calls: | ||
- [ setUseQueuedJobs, [ false ] ] | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.