SMTP::Turn PHP Method

Turn() public method

Implements from rfc 821: TURN SMTP CODE SUCCESS: 250 SMTP CODE FAILURE: 502 SMTP CODE ERROR : 500, 503
public Turn ( ) : boolean
return boolean
    public function Turn()
    {
        $this->error = array('error' => 'This method, TURN, of the SMTP ' . 'is not implemented');
        if ($this->do_debug >= 1) {
            echo 'SMTP -> NOTICE: ' . $this->error['error'] . $this->CRLF . '<br />';
        }
        return false;
    }

Usage Example

Esempio n. 1
0
 public function Turn()
 {
     $result = parent::Turn();
     $this->handleError();
     return $result;
 }