We have hosted osticket in godaddy while configuring email IMAP is working fine but SMTP is giving error cannot connect to host; error = stream_socket_client(): Unable to connect to tcp://smtp.gmail.com:587 (Connection refused) (errno = 0 )

please help

I think the protocol on 587 is tls: instead of tcp:. Leave the protocol off the url, and osTicket will add the correct one.

No, godaddy shouldn't be problem. They don't block SMTP as far as I know.
Assuming the account is able to send SMTP, more likely Gmail requires modern authentication now. They started migrating away from basic authentication sometime last year.
Try OAuth2. Follow our guide here to setup a Google web app for Gmail authorization.
You can get the plugin from here.

    TonyO anmanju2003

    GoDaddy could be blocking SMTP so don’t always rule that out. Especially if you’re on a shared host environment they typically lock it down pretty tightly.

    Cheers.

    Write a Reply...