{"action":"created","issue":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/692","labels_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/692/labels{/name}","comments_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/692/comments","events_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/692/events","html_url":"https://github.com/EC-CUBE/ec-cube/issues/692","id":103729751,"number":692,"title":"会員登録時に日本語メールアドレスを入れるとシステムエラーが発生する。","user":{"login":"shhirose","id":12494780,"avatar_url":"https://avatars.githubusercontent.com/u/12494780?v=3","gravatar_id":"","url":"https://api.github.com/users/shhirose","html_url":"https://github.com/shhirose","followers_url":"https://api.github.com/users/shhirose/followers","following_url":"https://api.github.com/users/shhirose/following{/other_user}","gists_url":"https://api.github.com/users/shhirose/gists{/gist_id}","starred_url":"https://api.github.com/users/shhirose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shhirose/subscriptions","organizations_url":"https://api.github.com/users/shhirose/orgs","repos_url":"https://api.github.com/users/shhirose/repos","events_url":"https://api.github.com/users/shhirose/events{/privacy}","received_events_url":"https://api.github.com/users/shhirose/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-28T14:35:40Z","updated_at":"2015-10-08T09:42:47Z","closed_at":null,"body":"#407 と同様のエラーメッセージが発生します。\r\n※エラーの内容は同じですが、Issue の内容としては異なるので別で作成しました。\r\n※会員登録以外でもメールを送信する部分すべてで発生する可能性があります。\r\n\r\n手順\r\n1. 会員情報入力画面でメールアドレスに「ああああ@example.com」を入力\r\n2. 確認画面まで行き（validation は通過します。）、登録ボタンを押下するとシステムエラー画面へ遷移\r\n\r\nエラーの内容は以下のとおりです。（ホスト名は存在するホスト名を使用しています。）\r\n<pre>\r\nSwift_RfcComplianceException: Address in mailbox given [ああああ@example.com] does not comply with RFC 2822, 3.6.2. (uncaught exception) at C:\\workspace\\c.next-ec\\c.next-ec\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Mime\\Headers\\MailboxHeader.php line 348 {\"exception\":\"[object] (Swift_RfcComplianceException(code: 0): Address in mailbox given [ああああ@example.com] does not comply with RFC 2822, 3.6.2. at C:\\\\workspace\\\\c.next-ec\\\\c.next-ec\\\\vendor\\\\swiftmailer\\\\swiftmailer\\\\lib\\\\classes\\\\Swift\\\\Mime\\\\Headers\\\\MailboxHeader.php:348)\"} []\r\n</pre>\r\n\r\n<code>Symfony\\Component\\Validator\\Constraints\\Email</code>では RFC 2822 の検証は行っていないためにメール送信時に Swift_Message で上記のエラーが出ているようです。\r\n※<code>\\Egulias\\EmailValidator\\EmailValidator</code> を入れるとやってくれるんですかね・・？\r\n\r\nドットの連続や、「@」前のドットも違反するはずです。\r\n理想としては環境構築する側で RFC 2822 を準拠するか、しないかを選択できるのが一番かな、と今までの経験から（個人的には除外したいですが）思います。\r\n"},"comment":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/comments/146475229","html_url":"https://github.com/EC-CUBE/ec-cube/issues/692#issuecomment-146475229","issue_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/692","id":146475229,"user":{"login":"t-nagahashi","id":13776434,"avatar_url":"https://avatars.githubusercontent.com/u/13776434?v=3","gravatar_id":"","url":"https://api.github.com/users/t-nagahashi","html_url":"https://github.com/t-nagahashi","followers_url":"https://api.github.com/users/t-nagahashi/followers","following_url":"https://api.github.com/users/t-nagahashi/following{/other_user}","gists_url":"https://api.github.com/users/t-nagahashi/gists{/gist_id}","starred_url":"https://api.github.com/users/t-nagahashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-nagahashi/subscriptions","organizations_url":"https://api.github.com/users/t-nagahashi/orgs","repos_url":"https://api.github.com/users/t-nagahashi/repos","events_url":"https://api.github.com/users/t-nagahashi/events{/privacy}","received_events_url":"https://api.github.com/users/t-nagahashi/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T09:42:47Z","updated_at":"2015-10-08T09:42:47Z","body":"メールアドレスに「t..est@example.com」を入れてみましたが、\r\n管理、フロント側ともに、サーバ側のエラーチェックで、チェックできているようです。\r\n■管理側\r\n![default](https://cloud.githubusercontent.com/assets/13776434/10362912/3ed10a0e-6dec-11e5-8f79-72b6193b65c6.PNG)\r\n■フロント側\r\n![default](https://cloud.githubusercontent.com/assets/13776434/10362916/42297970-6dec-11e5-88d2-546677e02b75.PNG)\r\n\r\n"}}