Update index.md

This commit is contained in:
Andrew Aitken-Fincham 2017-12-05 17:18:46 +00:00 committed by GitHub
parent eb55c27124
commit 4fa3cf59d3
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
```
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
### Sending plain text only