{"action":"opened","issue":{"url":"https://api.github.com/repos/swiftmailer/swiftmailer/issues/1087","repository_url":"https://api.github.com/repos/swiftmailer/swiftmailer","labels_url":"https://api.github.com/repos/swiftmailer/swiftmailer/issues/1087/labels{/name}","comments_url":"https://api.github.com/repos/swiftmailer/swiftmailer/issues/1087/comments","events_url":"https://api.github.com/repos/swiftmailer/swiftmailer/issues/1087/events","html_url":"https://github.com/swiftmailer/swiftmailer/issues/1087","id":324099586,"number":1087,"title":"Use of undefined constant INTL_IDNA_VARIANT_UTS46","user":{"login":"iatanasov77","id":9389929,"avatar_url":"https://avatars3.githubusercontent.com/u/9389929?v=4","gravatar_id":"","url":"https://api.github.com/users/iatanasov77","html_url":"https://github.com/iatanasov77","followers_url":"https://api.github.com/users/iatanasov77/followers","following_url":"https://api.github.com/users/iatanasov77/following{/other_user}","gists_url":"https://api.github.com/users/iatanasov77/gists{/gist_id}","starred_url":"https://api.github.com/users/iatanasov77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iatanasov77/subscriptions","organizations_url":"https://api.github.com/users/iatanasov77/orgs","repos_url":"https://api.github.com/users/iatanasov77/repos","events_url":"https://api.github.com/users/iatanasov77/events{/privacy}","received_events_url":"https://api.github.com/users/iatanasov77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-17T16:35:05Z","updated_at":"2018-05-17T16:35:05Z","closed_at":null,"author_association":"NONE","body":"<!-- Please fill in this template according to your issue. -->\r\n\r\n| Q                   | A\r\n| ------------------- | -----\r\n| Bug report?         | yes\r\n| Feature request?    | no\r\n| RFC?                | no\r\n| How used?           | Laravel\r\n| Swiftmailer version | 6.1.0\r\n| PHP version         | 7.1.17\r\n\r\n\r\n### Example\r\n<!-- Example to reproduce the issue. -->\r\nI send email by smtp transport with SwiftMailer. \r\nMail::send( 'emails.contact', $data,\r\n    function ( $message )\r\n    {\r\n        $message->to( 'noreply@mysite.bg' );\r\n        $message->subject( 'Mail Subject' );\r\n    }\r\n);\r\nThе code worked before it was updated from 6.0.2 to 6.1.0 version\r\n\r\n### Throws an Exception\r\n[2018-05-17 06:06:56] production.ERROR: Use of undefined constant INTL_IDNA_VARIANT_UTS46 - assumed 'INTL_IDNA_VARIANT_UTS46' {\"exception\":\"[object] (ErrorException(code: 0): Use of undefined constant INTL_IDNA_VARIANT_UTS46 - assumed 'INTL_IDNA_VARIANT_UTS46' at /home/lafkabgu/Lafka_2017/vendor/swiftmailer/swiftmailer/lib/classes/Swift/AddressEncoder/IdnAddressEncoder.php:55)\r\n[stacktrace]\r\n#0 /home/lafkabgu/Lafka_2017/vendor/swiftmailer/swiftmailer/lib/classes/Swift/AddressEncoder/IdnAddressEncoder.php(55): Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions->handleError(8, 'Use of undefine...', '/home/lafkabgu/...', 55, Array)\r\n#1 /home/lafkabgu/Lafka_2017/vendor/swiftmailer/swiftmailer/lib/classes/Swift/AddressEncoder/IdnAddressEncoder.php(43): Swift_AddressEncoder_IdnAddressEncoder->idnToAscii('lafka.bg')\r\n#2 /home/lafkabgu/Lafka_2017/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(377): Swift_AddressEncoder_IdnAddressEncoder->encodeString('noreply@lafka.b...')\r\n#3 /home/lafkabgu/Lafka_2017/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(478): Swift_Transport_EsmtpTransport->doMailFromCommand('noreply@lafka.b...')\r\n#4 /home/lafkabgu/Lafka_2017/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(507): Swift_Transport_AbstractSmtpTransport->doMailTransaction(Object(Swift_Message), 'noreply@lafka.b...', Array, Array)\r\n#5 /home/lafkabgu/Lafka_2017/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(205): Swift_Transport_AbstractSmtpTransport->sendTo(Object(Swift_Message), 'noreply@lafka.b...', Array, Array)\r\n#6 /home/lafkabgu/Lafka_2017/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php(70): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)\r\n#7 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(451): Swift_Mailer->send(Object(Swift_Message), Array)\r\n#8 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(235): Illuminate\\\\Mail\\\\Mailer->sendSwiftMessage(Object(Swift_Message))\r\n#9 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Illuminate\\\\Mail\\\\Mailer->send('emails.contact....', Array, Object(Closure))\r\n#10 /home/lafkabgu/Lafka_2017/app/Http/Controllers/Lafka/ContactPageController.php(33): Illuminate\\\\Support\\\\Facades\\\\Facade::__callStatic('send', Array)\r\n#11 [internal function]: App\\\\Http\\\\Controllers\\\\Lafka\\\\ContactPageController->sendMail(Object(App\\\\Http\\\\Requests\\\\ContactFormRequest))\r\n#12 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)\r\n#13 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\\\Routing\\\\Controller->callAction('sendMail', Array)\r\n#14 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\\\Routing\\\\ControllerDispatcher->dispatch(Object(Illuminate\\\\Routing\\\\Route), Object(App\\\\Http\\\\Controllers\\\\Lafka\\\\ContactPageController), 'sendMail')\r\n#15 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\\\Routing\\\\Route->runController()\r\n#16 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\\\\Routing\\\\Route->run()\r\n#17 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\\\Routing\\\\Router->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#18 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#19 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#20 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#21 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(67): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#22 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\VerifyCsrfToken->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#23 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#24 /home/lafkabgu/Lafka_2017/app/Http/Middleware/OrmAuthorize.php(62): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#25 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\\\Http\\\\Middleware\\\\OrmAuthorize->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#26 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#27 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php(39): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#28 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Session\\\\Middleware\\\\AuthenticateSession->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#29 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#30 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#31 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#32 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#33 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#34 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Session\\\\Middleware\\\\StartSession->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#35 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#36 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#37 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Cookie\\\\Middleware\\\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#38 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#39 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#40 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Cookie\\\\Middleware\\\\EncryptCookies->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#41 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#42 /home/lafkabgu/Lafka_2017/app/Http/Middleware/OrmForceSSL.php(25): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#43 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\\\Http\\\\Middleware\\\\OrmForceSSL->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#44 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#45 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#46 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\\\\Pipeline\\\\Pipeline->then(Object(Closure))\r\n#47 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\\\Routing\\\\Router->runRouteWithinStack(Object(Illuminate\\\\Routing\\\\Route), Object(Illuminate\\\\Http\\\\Request))\r\n#48 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\\\\Routing\\\\Router->runRoute(Object(Illuminate\\\\Http\\\\Request), Object(Illuminate\\\\Routing\\\\Route))\r\n#49 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\\\\Routing\\\\Router->dispatchToRoute(Object(Illuminate\\\\Http\\\\Request))\r\n#50 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\\\Routing\\\\Router->dispatch(Object(Illuminate\\\\Http\\\\Request))\r\n#51 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\\\Foundation\\\\Http\\\\Kernel->Illuminate\\\\Foundation\\\\Http\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#52 /home/lafkabgu/Lafka_2017/app/Http/Middleware/OrmMultilanguage.php(34): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#53 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\\\Http\\\\Middleware\\\\OrmMultilanguage->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#54 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#55 /home/lafkabgu/Lafka_2017/app/Http/Middleware/BuildNavigation.php(33): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#56 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\\\Http\\\\Middleware\\\\BuildNavigation->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#57 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#58 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#59 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#60 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#61 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#62 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#63 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#64 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#65 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#66 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#67 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#68 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\CheckForMaintenanceMode->handle(Object(Illuminate\\\\Http\\\\Request), Object(Closure))\r\n#69 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\\\Pipeline\\\\Pipeline->Illuminate\\\\Pipeline\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#70 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\\\Routing\\\\Pipeline->Illuminate\\\\Routing\\\\{closure}(Object(Illuminate\\\\Http\\\\Request))\r\n#71 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\\\Pipeline\\\\Pipeline->then(Object(Closure))\r\n#72 /home/lafkabgu/Lafka_2017/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\\\Foundation\\\\Http\\\\Kernel->sendRequestThroughRouter(Object(Illuminate\\\\Http\\\\Request))\r\n#73 /home/lafkabgu/Lafka_2017/public/index.php(53): Illuminate\\\\Foundation\\\\Http\\\\Kernel->handle(Object(Illuminate\\\\Http\\\\Request))\r\n#74 /home/lafkabgu/public_html/index.php(2): require('/home/lafkabgu/...')\r\n#75 {main}\r\n\"} \r\n"}}
{"actor":{"display_login":"iatanasov77"}}