silverstripe-australia/silverstripe-sesmail

This package is abandoned and no longer maintained. The author suggests using the symbiote/silverstripe-sesmail package instead.

Custom Mailer type that sends mail via Amazon's SES

Maintainers

👁 ssau

Package info

github.com/silverstripe-australia/silverstripe-sesmail

Issues

Type:silverstripe-vendormodule

pkg:composer/silverstripe-australia/silverstripe-sesmail

Statistics

Installs: 7 925

Dependents: 0

Suggesters: 0

Stars: 6

4.0.0 2019-10-01 05:50 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

BSD-3-Clause c03d775efd29a3b64feeed3fc91bc5a0e0b9b3f4

  • Marcus Nyeholt <marcus.woop@symbiote.com.au>

amazonemailsessilverstripe

This package is not auto-updated.

Last update: 2022-02-01 12:46:07 UTC


README

After installing the module, add configuration similar to the following to enable the mailer

---
Name: AWSConfig
---
SilverStripe\Core\Injector\Injector:
 SilverStripe\Control\Email\Mailer:
 class: Symbiote\SilverStripeSESMailer\Mail\SESMailer
 constructor:
 config:
 credentials:
 key: YourKey
 secret: YourSecret
 region: us-west-2
 version: '2010-12-01'
 signature_version: 'v4'

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

SilverStripe\Core\Injector\Injector:
 SilverStripe\Control\Email\Mailer:
 properties:
 alwaysFrom: my@address.com

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:

SilverStripe\Core\Injector\Injector:
 SilverStripe\Control\Email\Mailer:
 calls:
 - [ setUseQueuedJobs, [ false ] ]