lib/mail/MailSettings.php
public function setSandboxMode($enable)
    {
        if ($enable instanceof SandBoxMode) {
            $sandbox_mode = $enable;
            $this->sandbox_mode = $sandbox_mode;
            return;
        }
        $this->sandbox_mode = new SandBoxMode($enable);
        return;
    }
public function setSandboxMode($enable)
    {
        if ($enable instanceof SandBoxMode) {
            $sandbox_mode = $enable;
            $this->sandbox_mode = $sandbox_mode;
            return;
        }
        $this->sandbox_mode = new SandBoxMode($enable);
        return;
    }
public function setSandboxMode ( $ enable ) { if ( $ enable instanceof SandBoxMode ) { $ sandbox_mode = $ enable ; $ this -> sandbox_mode = $ sandbox_mode ; return ; } $ this -> sandbox_mode = new SandBoxMode ( $ enable ) ; return ; }
Set sandbox mode settings on a MailSettings object

@param SandBoxMode|bool $enable The SandBoxMode object or an
indication if the setting is enabled

@return null
Set sandbox mode settings on a MailSettings object