Skip to content

Commit

Permalink
Document alwaysFrom and default_recipient handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed Feb 16, 2018
1 parent 1093901 commit b75a037
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit b75a037

Please sign in to comment.