DOCS update email docs to use correct config syntax

This commit is contained in:
Daniel Hensby 2018-02-22 19:35:01 +00:00 committed by Daniel Hensby
parent 7fe8da3222
commit ade88ef0ea
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9

View File

@ -133,12 +133,12 @@ Configuration of those properties looks like the following:
**mysite/_config.php**
```php
use SilverStripe\Control\Director;
use SilverStripe\Control\Email\Email;
use SilverStripe\Core\Config\Config;
if(Director::isLive()) {
Config::inst()->update('Email', 'bcc_all_emails_to', "client@example.com");
Config::modify()->set(Email::class, 'bcc_all_emails_to', "client@example.com");
} else {
Config::inst()->update('Email', 'send_all_emails_to', "developer@example.com");
Config::modify()->set(Email::class, 'send_all_emails_to', "developer@example.com");
}
```