-
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.
Document alwaysFrom and default_recipient handling
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 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 |
---|---|---|
|
@@ -57,6 +57,8 @@ NSWDPC\SilverstripeMailgunSync\Connector\Base: | |
always_set_sender: true | ||
# Whether to send via a job | ||
send_via_job: 'when-attachments' | ||
# When set, messages with no 'To' header are delivered here. | ||
default_recipient: '' | ||
# Send messages via the MailgunSync Mailer | ||
Injector: | ||
Mailer: | ||
|
@@ -84,6 +86,16 @@ With a value of 'when-attachments' set, message delivery attempts without attach | |
### default_recipient | ||
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: | ||
``` | ||
Injector: | ||
Mailer: | ||
properties: | ||
alwaysFrom: [email protected] | ||
``` | ||
This is off by default. | ||
|
||
## Sending | ||
Sending of messages occurs via ```NSWDPC\SilverstripeMailgunSync\Connector\Message``` class using API configuration from YAML. | ||
|
||
|