public function setFrom($from,
$name = '',
$returnPath = null
) { if (preg_match('/\<(.*)\>/',
$from,
$match)) { $from =
$match[1
];
} if ($this->validate
) { $this->
validateEmail($this->
stringToArray($from));
if ($returnPath) { $this->
validateEmail($this->
stringToArray($returnPath));
} } $this->tmpArchive
['fromEmail'
] =
$from;
$this->tmpArchive
['fromName'
] =
$name;
if ($name !== ''
) { // only use Q encoding if there are characters that would require it