From ade88ef0ea450fcf5e9457dd686532d9c880d4ed Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Thu, 22 Feb 2018 19:35:01 +0000 Subject: [PATCH] DOCS update email docs to use correct config syntax --- docs/en/02_Developer_Guides/10_Email/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/02_Developer_Guides/10_Email/index.md b/docs/en/02_Developer_Guides/10_Email/index.md index 4261e490c..ad27a9b7f 100644 --- a/docs/en/02_Developer_Guides/10_Email/index.md +++ b/docs/en/02_Developer_Guides/10_Email/index.md @@ -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"); } ```