public function setHeader($header, $value)
    {
        if (is_array($value)) {
            throw new SMTPException(__('Header fields can only contain strings'));
        }

        $this->_header_fields[$header] = $value;
    }
public function setHeader($header, $value)
    {
        if (is_array($value)) {
            throw new SMTPException(__('Header fields can only contain strings'));
        }

        $this->_header_fields[$header] = $value;
    }
public function setHeader ( $ header , $ value ) { if ( is_array ( $ value ) ) { throw new SMTPException ( __ ( 'Header fields can only contain strings' ) ) ; } $ this -> _header_fields [ $ header ] = $ value ; }
Sets a header to be sent in the email.

@throws SMTPException
@param string $header
@param string $value
@return void
Sets a header to be sent in the email .