SMTP Error. Could not connect to SMTP host.

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
User avatar
New php-forum User
New php-forum User
Posts: 9
Joined: Sun Mar 04, 2012 11:19 pm

Sun Oct 21, 2012 11:04 pm


i hv SMTP error with my gmail acc and in localhost it work fine.but after i put under my hosting it not working. it show "SMTP Error. Could not connect to SMTP host.". Do i need to setup anything on my cpanel for make it working?

here my setting i used

$mail->Host = "";
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "";
$mail->Port = 587;
$mail->Username = "*******";
$mail->Password = "*********";

Post Reply