Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to tcp://smtp.gmail.com:587 (Nenhuma conexão pôde ser feita porque a máquina de destino as recusou ativamente. ) code example
Example: Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to tcp://smtp.gmail.com:587 (Network is unreachable)
I solved my problem in cpanel using the code:
inside `.env` file change
MAIL_DRIVER=smtp
to
MAIL_DRIVER=sendmail