V
V
Veronika Stepanovna2020-10-24 22:34:50
PHP
Veronika Stepanovna, 2020-10-24 22:34:50

Can't send email on Ubuntu 18.04 Swift_TransportException: Temporary failure in name resolution not configured in php?

You need to send emails on the site. It works on Yii2. I send letters to mailtrap. However, I am getting an error

Swift_TransportException
Connection could not be established with host smtp.mailtrap.io :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution


I googled that the problem could be in ports and encryption. But when I launch the site on OpenServer, the letter flies away. The site is currently running on Vagrant + Ubuntu 18.04 + php7.3

Can't figure out the issue

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman PHP, 2020-10-24
@sargss

not. host not resolving

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question