source/Core/Email.php
public function setSmtp($shop = null)
    {
        $myConfig = Registry::getConfig();
        $shop = ($shop) ? $shop : $this->_getShop();

        $smtpUrl = $this->_setSmtpProtocol($shop->oxshops__oxsmtp->value);

        if (!$this->_isValidSmtpHost($smtpUrl)) {
            $this->setMailer("mail");

            return;
        }

        $this->setHost($smtpUrl);
        $this->setMailer("smtp");

        if ($shop->oxshops__oxsmtpuser->value) {
            $this->_setSmtpAuthInfo($shop->oxshops__oxsmtpuser->value, $shop->oxshops__oxsmtppwd->value);
        }

        if ($myConfig->getConfigParam('iDebug') == 6) {
            $this->_setSmtpDebug(true);
        }
    }
public function setSmtp($shop = null)
    {
        $myConfig = Registry::getConfig();
        $shop = ($shop) ? $shop : $this->_getShop();

        $smtpUrl = $this->_setSmtpProtocol($shop->oxshops__oxsmtp->value);

        if (!$this->_isValidSmtpHost($smtpUrl)) {
            $this->setMailer("mail");

            return;
        }

        $this->setHost($smtpUrl);
        $this->setMailer("smtp");

        if ($shop->oxshops__oxsmtpuser->value) {
            $this->_setSmtpAuthInfo($shop->oxshops__oxsmtpuser->value, $shop->oxshops__oxsmtppwd->value);
        }

        if ($myConfig->getConfigParam('iDebug') == 6) {
            $this->_setSmtpDebug(true);
        }
    }
public function setSmtp ( $ shop = null ) { $ myConfig = Registry :: getConfig ( ) ; $ shop = ( $ shop ) ? $ shop : $ this -> _getShop ( ) ; $ smtpUrl = $ this -> _setSmtpProtocol ( $ shop -> oxshops__oxsmtp -> value ) ; if ( ! $ this -> _isValidSmtpHost ( $ smtpUrl ) ) { $ this -> setMailer ( "mail" ) ; return ; } $ this -> setHost ( $ smtpUrl ) ; $ this -> setMailer ( "smtp" ) ; if ( $ shop -> oxshops__oxsmtpuser -> value ) { $ this -> _setSmtpAuthInfo ( $ shop -> oxshops__oxsmtpuser -> value , $ shop -> oxshops__oxsmtppwd -> value ) ; } if ( $ myConfig -> getConfigParam ( 'iDebug' ) == 6 ) { $ this -> _setSmtpDebug ( true ) ; } }
Sets SMTP mailer parameters, such as user name, password, location.

@param \OxidEsales\Eshop\Application\Model\Shop $shop Object, that keeps base shop info

@return null
Sets SMTP mailer parameters such as user name password location .