Connection could not be established with host

i use swift mailer on my localhost and it's fine but when i upload file on host and test the project i get this error " Connection could not be established with host " and i wonder what is wrong ?



30.2k

Exactly what the error says: Connection could not be established with host . You should check if you can ping/telnet the remote host from your server

error says my host haven't ssl connection but i checked and openssl extension work fine i can not sent mail in my host with smtp ssl conection i check that with swift mailer and phpmailer non of them not work but without ssl work fine .

i need to say that just don't work in php 5.6