mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7680 from andrewandante/patch-5
Update email instructions with SMTP configuration details
This commit is contained in:
commit
5087ec764e
@ -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