Double-check your SMTP host, port number, encryption type (SSL or TLS), and your login credentials.
Try using port 465 (SSL) or port 587 (TLS) if your current port is not working.
Contact your hosting provider and ask if outbound SMTP connections are blocked on your server.