K
K
Kripto772020-05-22 11:51:49
symfony
Kripto77, 2020-05-22 11:51:49

How to disable TLS in Symfony 5 / Mailer?

It is necessary to send letters through an SMTP server where authorization is based only on the IP address - without login / password / tls - do not ask why, it does not depend on me ... It is

very necessary to turn off TLS / SSL in the regular Symfony 5 Mailer https://symfony.com /doc/current/mailer.html - for direct connection without encryption. Otherwise error:

Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed


Or please give a link to an example of a detailed configuration file config/packages/mailer.yaml

I already figured out PHPmailer, but Symfony Mailer is very necessary.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kripto77, 2020-05-22
@Kripto77

Searches have shown that now this problem can only be solved with a crutch. Symfony version 5.1 will introduce the verify_peer=false parameter

MAILER_DSN=smtp://user:[email protected]?verify_peer=false

For now, you'll have to use PHPmailer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question