public function getAddress(): Address
{ return $this->address;
} public function getBodyAsString(): string
{ $str =
$this->address->
getEncodedAddress();
if ($name =
$this->address->
getName()) { $str =
$this->
createPhrase($this,
$name,
$this->
getCharset(), true
).' <'.
$str.'>';
} return $str;
} /**
* Redefine the encoding requirements for an address.
*
* All "specials" must be encoded as the full header value will not be quoted
*
* @see RFC 2822 3.2.1
*/