I haven't tried it in httpdocs (http) but I have been trying it in httpsdocs (https) and it can't connect to the smtp. I even tried connecting to gmail smtp and still no luck.

What is the solution?