T
T
Theory Theory2020-11-06 11:43:41
Yii
Theory Theory, 2020-11-06 11:43:41

Can't send messages via tls?

framework yii2.
swiftmailer settings:

'class' => 'Swift_SmtpTransport',
                'encryption' => 'tls',
                'host' => 'smtp.mail.ru',
                'port' => '465',
                'username' => 'мой @mail',
                'password' => 'мой пароль',


As a result, the error: Connection to tcp://smtp.mail.ru:465 Timed Out

But 'encryption' => 'ssl' works!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Chernykh, 2020-11-06
@Narbek

for tls ports 587 or 25

C
CityCat4, 2020-11-06
@CityCat4

And what kind of port is so strange? 25 has always been. Well, either 587 - submission. You seem to be trying to use smtps - a connection where an ssl connection is established before the transmission starts. This is an unpopular option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question