Cannot send email - problem with port 465

It’s likely that the outgoing port is being blocked by your hosting provider. If you’re using some service like mailgun (or most any other) then port 2525 should work. If it’s a mail server you run, then you can have it listen to another port (like 2525).

Or (probably hardest) you can open a ticket with whoever hosts your server and ask them to open the port.