opensrs\Mail::send PHP Method

send() public method

public send ( $dataObject, $command = null )
    public function send($dataObject, $command = null)
    {
        $dataObject = $this->addAuthenticationInfo($dataObject);
        if ($command && $this->command) {
            $sequence = array(0 => 'ver ver="3.4"', 1 => 'login user="' . $dataObject->attributes->admin_username . '" domain="' . $dataObject->attributes->admin_domain . '" password="' . $dataObject->attributes->admin_password . '"', 2 => $this->command . $command, 3 => 'quit');
        } else {
            $sequence = array(0 => 'ver ver="3.4"', 1 => 'login user="' . $dataObject->attributes->admin_username . '" domain="' . $dataObject->attributes->admin_domain . '" password="' . $dataObject->attributes->admin_password . '"', 2 => 'quit');
        }
        $tucRes = $this->makeCall($sequence);
        $arrayResult = $this->parseResults($tucRes);
        $base = new Base();
        // Results
        $this->resultFullRaw = $arrayResult;
        $this->resultRaw = $arrayResult;
        $this->resultFullFormatted = $base->convertArray2Formatted($this->_formatHolder, $this->resultFullRaw);
        $this->resultFormatted = $base->convertArray2Formatted($this->_formatHolder, $this->resultRaw);
    }