{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zend-mail/issues/49","labels_url":"https://api.github.com/repos/zendframework/zend-mail/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-mail/issues/49/comments","events_url":"https://api.github.com/repos/zendframework/zend-mail/issues/49/events","html_url":"https://github.com/zendframework/zend-mail/issues/49","id":124063648,"number":49,"title":"Mail recepients with German umlaut are not accepted","user":{"login":"renecatharsis","id":1114906,"avatar_url":"https://avatars.githubusercontent.com/u/1114906?v=3","gravatar_id":"","url":"https://api.github.com/users/renecatharsis","html_url":"https://github.com/renecatharsis","followers_url":"https://api.github.com/users/renecatharsis/followers","following_url":"https://api.github.com/users/renecatharsis/following{/other_user}","gists_url":"https://api.github.com/users/renecatharsis/gists{/gist_id}","starred_url":"https://api.github.com/users/renecatharsis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renecatharsis/subscriptions","organizations_url":"https://api.github.com/users/renecatharsis/orgs","repos_url":"https://api.github.com/users/renecatharsis/repos","events_url":"https://api.github.com/users/renecatharsis/events{/privacy}","received_events_url":"https://api.github.com/users/renecatharsis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-28T12:46:50Z","updated_at":"2016-01-08T09:39:11Z","closed_at":null,"body":"-\r\nCloned this from zf2 issue repository for correct assignment to zend-mail:\r\nhttps://github.com/zendframework/zf2/issues/7654\r\n-\r\n\r\nHi,\r\n\r\nsince ZF v2.4.x, I cannot send any mails to recepients containing German umlauts in their mail address.\r\nFor exmaple: testäöü@gmail.com\r\nEncoding is set to UTF-8 on Zend\\Mail\\Message object.\r\nThe following expection is thrown:\r\n\r\n`Invalid header value detected #0 foobar\\vendor\\zendframework\\zend-mail\\src\\Header\\AbstractAddressList.php(114): Zend\\Mail\\Header\\HeaderValue::assertValid('test\\xC3\\xA4\\xC3\\xB6\\xC3\\xBC@gmai...') #1 foobar\\vendor\\zendframework\\zend-mail\\src\\Header\\AbstractAddressList.php(158): Zend\\Mail\\Header\\AbstractAddressList->getFieldValue(true) #2 foobar\\vendor\\zendframework\\zend-mail\\src\\Headers.php(422): Zend\\Mail\\Header\\AbstractAddressList->toString() #3 foobar\\vendor\\zendframework\\zend-mail\\src\\Transport\\Smtp.php(332): Zend\\Mail\\Headers->toString() #4 foobar\\vendor\\zendframework\\zend-mail\\src\\Transport\\Smtp.php(238): Zend\\Mail\\Transport\\Smtp->prepareHeaders(Object(Zend\\Mail\\Message)) #5 foobar\\vendor\\Solar\\library\\Solar\\Mail\\Mail.php(144): Zend\\Mail\\Transport\\Smtp->send(Object(Zend\\Mail\\Message)) #6 foobar\\vendor\\Solar\\library\\Solar\\Client\\AbstractClient.php(249): Solar\\Mail\\Mail->sendSmtp('processrevenuec...', Array, true, '') #7 foobar\\modules\\eonde\\Processrevenuecheck.php(73): Solar\\Client\\AbstractClient->sendMail('test\\xC3\\xA4\\xC3\\xB6\\xC3\\xBC@gmai...', '', Array) #8 foobar\\vendor\\Solar\\library\\Solar\\Bootstrap\\Bootstrap.php(248): modules\\eonde\\Processrevenuecheck->run() #9 foobar\\index.php(80): Solar\\Bootstrap\\Bootstrap->getResponse() #10 {main}`\r\n\r\nUmlauts work fine with the subject and body.\r\nAlso, the value passes the \\Zend\\Validate\\EmailAddress validator.\r\nIt might be related to this issue although I cannot gain any workaround from it:\r\nhttps://github.com/zendframework/zf2/issues/7501\r\n\r\nUpdate:\r\nSeems like RFC6531 was implemented in zend-validate but not yet zend-mail."},"comment":{"url":"https://api.github.com/repos/zendframework/zend-mail/issues/comments/169947340","html_url":"https://github.com/zendframework/zend-mail/issues/49#issuecomment-169947340","issue_url":"https://api.github.com/repos/zendframework/zend-mail/issues/49","id":169947340,"user":{"login":"BreyndotEchse","id":2163881,"avatar_url":"https://avatars.githubusercontent.com/u/2163881?v=3","gravatar_id":"","url":"https://api.github.com/users/BreyndotEchse","html_url":"https://github.com/BreyndotEchse","followers_url":"https://api.github.com/users/BreyndotEchse/followers","following_url":"https://api.github.com/users/BreyndotEchse/following{/other_user}","gists_url":"https://api.github.com/users/BreyndotEchse/gists{/gist_id}","starred_url":"https://api.github.com/users/BreyndotEchse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BreyndotEchse/subscriptions","organizations_url":"https://api.github.com/users/BreyndotEchse/orgs","repos_url":"https://api.github.com/users/BreyndotEchse/repos","events_url":"https://api.github.com/users/BreyndotEchse/events{/privacy}","received_events_url":"https://api.github.com/users/BreyndotEchse/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T09:39:11Z","updated_at":"2016-01-08T09:39:11Z","body":"Oh. You're right. Intl was not loaded in my test environment. I have looked up RFC 6531, 6530, 5336, 5891 and 5890 and could not find any reference that the local-part could be converted to IDN ASCII. Actually there are some hints that the local-part SHOULD NOT be converted.\r\n\r\nRFC 5891:\r\n> IDNA does not update the existing email standards, which allow only ASCII characters in local parts.  Even though work is in progress to define internationalization for email addresses [RFC4952], changes to the email address part of the SOA RDATA would require action in, or updates to, other standards, specifically those that specify the format of the SOA RR.\r\n\r\n(https://tools.ietf.org/html/rfc5891#section-3.2.2)\r\n\r\nRFC 6530:\r\n> In order to use internationalized email addresses, it is necessary to internationalize both the domain part and the local part of email addresses.  The domain part of email addresses is already internationalized [RFC5890], while the local part is not.\r\n\r\n(https://tools.ietf.org/html/rfc6530#section-1)\r\n\r\nIMO the behavior in zend-validator is wrong.\r\n\r\nHowever google gave me some results of people claiming that some email providers actually support IDN converted local-parts. Let's ask @svyatoslav-kubakh who implemented IDN (zendframework/zf2#7281). Maybe he can give us more information on this."}}