-
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.
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 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 |
---|---|---|
|
@@ -14,9 +14,9 @@ The module is not (yet) in Packagist, add: | |
} | ||
] | ||
``` | ||
to your composer.json, then run (to install v0.2+): | ||
to your composer.json, then run (to install vN.n+): | ||
``` | ||
$ composer require nswdpc/silverstripe-mailgun-sync:~0.2 | ||
$ composer require nswdpc/silverstripe-mailgun-sync:~N.n | ||
``` | ||
|
||
### Module Dependencies: | ||
|
@@ -87,14 +87,16 @@ With a value of 'when-attachments' set, message delivery attempts without attach | |
Mailgun requires a 'to' parameter. If your system sends messages with Bcc/Cc but no 'To' then you will need to specify a default_recipient (one that you control). | ||
|
||
### alwaysFrom | ||
If you wish to have all emails sent from a single address by default, add the following to your Mailer config: | ||
If you wish to have all emails sent from a single address by default, regardless of the From header set, add the following to your Mailer config: | ||
``` | ||
Injector: | ||
Mailer: | ||
properties: | ||
alwaysFrom: [email protected] | ||
alwaysFrom: 'Someone <[email protected]>' | ||
# or | ||
# alwaysFrom: '[email protected]' | ||
``` | ||
This is off by default. | ||
This is off by default. When in use the From header will be set as the Reply-To. | ||
|
||
## Sending | ||
Sending of messages occurs via ```NSWDPC\SilverstripeMailgunSync\Connector\Message``` class using API configuration from YAML. | ||
|