mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7885 from dhensby/pulls/4.0/email-docs-config
DOCS update email docs to use correct config syntax
This commit is contained in:
commit
e23353fe99
@ -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");
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user