V
V
Vladimir Grabko2016-06-09 23:18:37
Mail server
Vladimir Grabko, 2016-06-09 23:18:37

Why is sending via smtp server falling?

Specified in the settings

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mail.ru
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=password
MAIL_ENCRYPTION=TLS

Throws an exception
Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host imap.mail.ru [Connection timed out #110]

UPD.
It turned out that I also can’t log in to mail programs, although I set everything up according to the wiki.
https://help.mail.ru/mail-help/mailer/mt
And so with any mail. Is there a problem with ubuntu?
UPD.
After removing postfix mail, the programs started working. But in laravel the same problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Grabko, 2016-06-10
@VGrabko

It turned out that the provider blocked the smtp ports by mistake.

P
pirogtm, 2021-09-07
@pirogtm

I struggled with this problem until I realized that I was changing the .env config, but the connection parameters did not change. I forgot that I need to clear the cache so that new config values ​​\u200b\u200bare pulled up:
php artisan config:cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question