Merge pull request #7706 from dhensby/pulls/4/smtp-mailer-config-docs

DOCS Clarify SMTP mailer setup
This commit is contained in:
Loz Calver 2017-12-14 13:50:18 +00:00 committed by GitHub
commit 7df3c49ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,14 @@ SilverStripe\Core\Injector\Injector:
Swift_Transport: Swift_SendmailTransport
```
For example, to use SMTP:
For example, to use SMTP, create a file mysite/_config/email.yml:
```yml
---
Name: myemailconfig
After:
- '#emailconfig'
---
SilverStripe\Core\Injector\Injector:
Swift_Transport:
class: Swift_SmtpTransport