@mohammad79 Double check your port and encryption settings with your SMTP provider. SSL usually requires a certificate file and sometimes you need to add/set extra options for it to work.
The more common setup is to use TLS on port 587. This is what we use with Amazon SES and Mailtrap.