Merge pull request #7680 from andrewandante/patch-5

Update email instructions with SMTP configuration details
This commit is contained in:
Loz Calver 2017-12-05 17:26:32 +00:00 committed by GitHub
commit 5087ec764e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,22 @@ SilverStripe\Core\Injector\Injector:
Swift_Transport: Swift_SendmailTransport Swift_Transport: Swift_SendmailTransport
``` ```
For example, to use SMTP:
```yml
SilverStripe\Core\Injector\Injector:
Swift_Transport:
class: Swift_SmtpTransport
properties:
Host: smtp.host.com
Port: <port>
Encryption: tls
calls:
Username: [ setUsername, ['<username>'] ]
Password: [ setPassword, ['<password>'] ]
AuthMode: [ setAuthMode, ['login'] ]
```
## Usage ## Usage
### Sending plain text only ### Sending plain text only