2541

Не работает SMTP на Laravel

1 ответ

Почему не работает SMTP на Laravel?

Swift_TransportException thrown with message "Connection could not be established with host smtp.timeweb.ru [Connection refused #111]" Stacktrace: #67 Swift_TransportException in /home/c/cr98112/es.its.com.kz/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:269 #66 Swift_Transport_StreamBuffer:establishSocketConnection in /home/c/cr98112/es.its.com.kz/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:58 #65 Swift_Transport_StreamBuffer:initialize in /home/c/cr98112/es.its.com.kz/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:143 #64 Swift_Transport_AbstractSmtpTransport:start in /home/c/cr98112/es.its.com.kz/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php:65 #63 Swift_Mailer:send in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:479 #62 Illuminate\Mail\Mailer:sendSwiftMessage in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:259 #61 Illuminate\Mail\Mailer:send in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Mail/Mailable.php:159 #60 Illuminate\Mail\Mailable:Illuminate\Mail\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Support/Traits/Localizable.php:19 #59 Illuminate\Mail\Mailable:withLocale in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Mail/Mailable.php:160 #58 Illuminate\Mail\Mailable:send in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:274 #57 Illuminate\Mail\Mailer:sendMailable in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:229 #56 Illuminate\Mail\Mailer:send in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Mail/PendingMail.php:124 #55 Illuminate\Mail\PendingMail:send in /home/c/cr98112/es.its.com.kz/public_html/app/User.php:56 #54 App\User:invite in /home/c/cr98112/es.its.com.kz/public_html/app/Http/Controllers/AdminController.php:49 #53 App\Http\Controllers\AdminController:invite in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 #52 call_user_func_array in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 #51 Illuminate\Routing\Controller:callAction in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 #50 Illuminate\Routing\ControllerDispatcher:dispatch in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:219 #49 Illuminate\Routing\Route:runController in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:176 #48 Illuminate\Routing\Route:run in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682 #47 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 #46 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/app/Http/Middleware/AdminMiddleware.php:21 #45 App\Http\Middleware\AdminMiddleware:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #44 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #43 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 #42 Illuminate\Routing\Middleware\SubstituteBindings:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #40 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75 #39 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 #36 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63 #33 Illuminate\Session\Middleware\StartSession:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 #30 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 #27 Illuminate\Cookie\Middleware\EncryptCookies:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #25 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 #24 Illuminate\Pipeline\Pipeline:then in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:684 #23 Illuminate\Routing\Router:runRouteWithinStack in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659 #22 Illuminate\Routing\Router:runRoute in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625 #21 Illuminate\Routing\Router:dispatchToRoute in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:614 #20 Illuminate\Routing\Router:dispatch in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 #19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 #18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/fideloper/proxy/src/TrustProxies.php:57 #17 Fideloper\Proxy\TrustProxies:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #11 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 #8 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 #5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 #2 Illuminate\Pipeline\Pipeline:then in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/c/cr98112/es.its.com.kz/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /home/c/cr98112/es.its.com.kz/public_html/public/index.php:55

Ответы (1)

Такая же проблема при работе с SwiftMailer в Yii2

Swift_TransportException: Connection could not be established with host smtp.timeweb.ru [Connection refused #111]
Какое-то решение нашли?

Похожие вопросы

Павел Яковлев
914

Не создается папка storage (Laravel)

Тестил сайт где-то месяц назад и при написании "php artisan storage:link" создавалась папка storage, а сейчас создается только какой-то файл с именем "storage". Если кто сталкивался с таким помогите :)
С помощью соцсетей
У меня нет аккаунта Зарегистрироваться
Нажимая кнопку «Зарегистрироваться», я даю согласие на обработку своих персональных данных, указанных в форме регистрации.
С помощью соцсетей
У меня уже есть аккаунт Войти
Нажимая кнопку «Зарегистрироваться», я даю согласие на обработку своих персональных данных, указанных в форме регистрации.
Инструкции по восстановлению пароля высланы на Ваш адрес электронной почты.
Пожалуйста, укажите email вашего аккаунта