Symfony
\
Component
\
Mailer
\
Exception
\
TransportException
PHP 8.2.4
10.15.0
Connection could not be established with host ":2525": stream_socket_client(): Unable to connect to :2525 (No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión)
The error message indicates that Symfony couldn't connect to the SMTP server at port 2525 because it was explicitly denied.
Here's what you can do:
Double-check your SMTP server settings in Symfony to make sure they're correct.
Verify that your SMTP server is up and running on port 2525.
Check if there are any firewall rules or access restrictions on the SMTP server that might be blocking the connection.
Test the connection using the telnet command from your server to the SMTP server:
telnet your-smtp-server.com 2525