Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF8 when Read from IMAP #71

Open
michalbundyra opened this issue Jan 15, 2020 · 0 comments
Open

UTF8 when Read from IMAP #71

michalbundyra opened this issue Jan 15, 2020 · 0 comments

Comments

@michalbundyra
Copy link
Member

I see error when mail have format with UTF8 Võ Ngọc, Minh

Exception: exception 'Zend\Mail\Exception\InvalidArgumentException' with message 'The input is not a valid email address. Use the basic format local-part@hostname' in /mdata/libraries/ZendFramework2/library/Zend/Mail/Address.php:41 Stack trace: #0 /mdata/libraries/ZendFramework2/library/Zend/Mail/AddressList.php(249): Zend\Mail\Address->__construct('Nguy\xC3\xAA\xCC\x83n L\xC6\xB0u ...', NULL) #1 /mdata/libraries/ZendFramework2/library/Zend/Mail/AddressList.php(35): Zend\Mail\AddressList->createAddress('Nguy\xC3\xAA\xCC\x83n L\xC6\xB0u ...', NULL) #2 /mdata/libraries/ZendFramework2/library/Zend/Mail/AddressList.php(113): Zend\Mail\AddressList->add('Nguy\xC3\xAA\xCC\x83n L\xC6\xB0u ...', NULL) #3 /mdata/libraries/ZendFramework2/library/Zend/Mail/Header/AbstractAddressList.php(74): Zend\Mail\AddressList->addFromString('Nguy\xC3\xAA\xCC\x83n L\xC6\xB0u ...') #4 /mdata/libraries/ZendFramework2/library/Zend/Mail/Headers.php(479): Zend\Mail\Header\AbstractAddressList::fromString('From: =?UTF-8?Q...') #5 /mdata/libraries/ZendFramework2/library/Zend/Mail/Headers.php(314): Zend\Mail\Headers->lazyLoadHeader(14) #6 /mdata/libraries/ZendFramework2/library/Zend/Mail/Storage/Part.php(291): Zend\Mail\Headers->get('from') #7 /mdata/libraries/ZendFramework2/library/Zend/Mail/Storage/Part.php(365): Zend\Mail\Storage\Part->getHeader('from', 'string') #8

Thank you very much.


Originally posted by @minhvn at zendframework/zend-mail#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant