mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update index.md
This commit is contained in:
parent
eb55c27124
commit
4fa3cf59d3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user