public function getRawHeader($name)
    {
        $name = strtolower($name);
        if (isset($this->parts[1])) {
            $headers = $this->getPart('headers', $this->parts[1]);

            return isset($headers[$name]) ? $headers[$name] : false;
        } else {
            throw new Exception(
                'setPath() or setText() or setStream() must be called before retrieving email headers.'
            );
        }
    }
public function getRawHeader($name)
    {
        $name = strtolower($name);
        if (isset($this->parts[1])) {
            $headers = $this->getPart('headers', $this->parts[1]);

            return isset($headers[$name]) ? $headers[$name] : false;
        } else {
            throw new Exception(
                'setPath() or setText() or setStream() must be called before retrieving email headers.'
            );
        }
    }
public function getRawHeader ( $ name ) { $ name = strtolower ( $ name ) ; if ( isset ( $ this -> parts [ 1 ] ) ) { $ headers = $ this -> getPart ( 'headers' , $ this -> parts [ 1 ] ) ; return isset ( $ headers [ $ name ] ) ? $ headers [ $ name ] : false ; } else { throw new Exception ( 'setPath() or setText() or setStream() must be called before retrieving email headers.' ) ; } }
Retrieve a specific Email Header, without charset conversion.

@param string $name Header name (case-insensitive)

@return string|bool
@throws Exception
Retrieve a specific Email Header without charset conversion .