-
-
Notifications
You must be signed in to change notification settings - Fork 157
Closed
Description
Undefined property: stdClass::$host
... /vendor/tedivm/fetch/src/Fetch/Message.php:573
It can be reproduced when the To header is not an email.
Example:
To: undisclosed-recipients:;
It happened when i received a email from a Redmine app.
I fast fixed adding this:
$currentAddress['address'] = $address->mailbox . '@' . $address->host;
if (isset($address->personal))
$currentAddress['name'] = $address->personal;
$outputAddresses[] = $currentAddress;Changing with this...
if (property_exists($address, 'mailbox') && $address->mailbox != 'undisclosed-recipients') {
$currentAddress['address'] = $address->mailbox . '@' . $address->host;
if (isset($address->personal))
$currentAddress['name'] = $address->personal;
$outputAddresses[] = $currentAddress;
}I know that is a fast and quite dirty solution.
Sorry for my english.
Metadata
Metadata
Assignees
Labels
No labels