Biri siteme üye olunca veya şifremi unuttum diyince mail gönderilmiyor. E posta ayarlarımın da doğru olduğunu düşünüyorum.
Gmail tarafındada IMAP’ı etkinleştirdim.
Alınan hata logu:
POST https://www.sitem.com/api/forgot
{
"errors": [
{
"status": "500",
"code": "unknown",
"detail": "Swift_TransportException: Connection could not be established with host smtp.gmail.com :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/vhosts/sitem.com/httpdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:271\nStack trace:\n#0 [internal function]: Swift_Transport_StreamBuffer->{closure}(2, 'stream_socket_c...', '/var/www/vhosts...', 274, Array)\n#1 /var/www/vhosts/sitem.com/httpdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(274): stream_socket_client('ssl://smtp.gmai...', 0, 'php_network_get...', 30, 4, Resource id #716)\n#2 /var/www/vhosts/sitem.com/httpdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(58): Swift_Transport_StreamBuffer->establishSocketConnection()\n#3 /var/www/vhosts/sitem.com/httpdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(143): Swift_Transport_StreamBuffer->initialize(Array)\n#4 /var/www/vhosts/sitem.com/httpdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php(65): Swift_Transport_AbstractSmtpTransport->start()\n#5 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/mail/Mailer.php(483): Swift_Mailer->send(Object(Swift_Message), Array)\n#6 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/mail/Mailer.php(259): Illuminate\\Mail\\Mailer->sendSwiftMessage(Object(Swift_Message))\n#7 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/mail/Mailer.php(183): Illuminate\\Mail\\Mailer->send(NULL, Array, Object(Closure))\n#8 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Mail/Job/SendRawEmailJob.php(34): Illuminate\\Mail\\Mailer->raw('Merhaba admin!\\n...', Object(Closure))\n#9 [internal function]: Flarum\\Mail\\Job\\SendRawEmailJob->handle(Object(Illuminate\\Mail\\Mailer))\n#10 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/container/BoundMethod.php(29): call_user_func_array(Array, Array)\n#11 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/container/BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#12 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/container/BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Flarum\\Foundation\\Application), Array, Object(Closure))\n#13 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/container/Container.php(572): Illuminate\\Container\\BoundMethod::call(Object(Flarum\\Foundation\\Application), Array, Array, NULL)\n#14 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/bus/Dispatcher.php(94): Illuminate\\Container\\Container->call(Array)\n#15 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(Flarum\\Mail\\Job\\SendRawEmailJob))\n#16 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Flarum\\Mail\\Job\\SendRawEmailJob))\n#17 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/queue/CallQueuedHandler.php(49): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(Flarum\\Mail\\Job\\SendRawEmailJob), false)\n#19 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/queue/Jobs/Job.php(83): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\SyncJob), Array)\n#20 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/queue/SyncQueue.php(42): Illuminate\\Queue\\Jobs\\Job->fire()\n#21 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/User/Command/RequestPasswordResetHandler.php(115): Illuminate\\Queue\\SyncQueue->push(Object(Flarum\\Mail\\Job\\SendRawEmailJob))\n#22 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/bus/Dispatcher.php(90): Flarum\\User\\Command\\RequestPasswordResetHandler->handle(Object(Flarum\\User\\Command\\RequestPasswordReset))\n#23 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(Flarum\\User\\Command\\RequestPasswordReset))\n#24 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Flarum\\User\\Command\\RequestPasswordReset))\n#25 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#26 /var/www/vhosts/sitem.com/httpdocs/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(Flarum\\User\\Command\\RequestPasswordReset))\n#27 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Api/Controller/ForgotPasswordController.php(51): Illuminate\\Bus\\Dispatcher->dispatch(Object(Flarum\\User\\Command\\RequestPasswordReset))\n#28 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\ForgotPasswordController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#29 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#30 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#31 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#32 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#33 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#34 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#35 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#36 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#37 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#38 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#39 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#40 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#41 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#42 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#43 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#44 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#45 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#46 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#47 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#48 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#49 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#50 /var/www/vhosts/sitem.com/httpdocs/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#51 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#52 /var/www/vhosts/sitem.com/httpdocs/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#53 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#54 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#55 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#56 /var/www/vhosts/sitem.com/httpdocs/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#57 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#58 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#59 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#60 /var/www/vhosts/sitem.com/httpdocs/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#61 /var/www/vhosts/sitem.com/httpdocs/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#62 /var/www/vhosts/sitem.com/httpdocs/index.php(22): Flarum\\Http\\Server->listen()\n#63 {main}"
}
]
}