I
I
Ivan Stroykin2016-07-02 19:56:49
Laravel
Ivan Stroykin, 2016-07-02 19:56:49

How to set up Laravel and smtp mail.ru (mail for domains)?

Good day,
There are such settings in .env

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mail.ru
MAIL_PORT=465
MAIL_USERNAME=моя_почта
MAIL_PASSWORD=мой_пароль
MAIL_ENCRYPTION=tls

I also duplicated the settings in config/mail.php
But when trying, for example, to recover the password from the system, an error occurs:
Connection to tcp://smtp.mail.ru:465 Timed Out

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
EVOSandru6, 2018-08-14
@StivinKing

Working variant:
Perhaps the ssl certificate is not needed, but I installed Lets encrypt.
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mail.ru
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=pass
MAIL_ENCRYPTION=ssl
[email protected]
MAIL_FROM_NAME='tra ta ta'

O
OnYourLips, 2016-07-02
@OnYourLips

Send mail through specialized services. If you send from a regular user account, it will take a long time, and spam filters will stop.

V
Vladimir Grabko, 2016-07-02
@VGrabko

put ssl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question