imap
imap copied to clipboard
AbstractMessage::getTo returns one EmailAddress always
Hi! Why I can't get all recipients of Message when it was sended to two or more addresses? Thanks. update: getGawHeaders() returns all addresses:
...
To: zzzz <ivan@***.ru>, =?UTF-8?B?0JjQstCw0L0g0JjQs9C90LDRgtGM0LXQsg==?= <[email protected]>
...
Just need to replace $this->headers = new Message\Headers($headers);
to $this->headers = new Message\Headers(\imap_rfc822_parse_headers($this->getRawHeaders())); in \Ddeboer\Imap\Message::getHeaders()