Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

SMTP Error. Could not connect to SMTP host.

General discussions related to php

Moderators: macek, egami, gesf

SMTP Error. Could not connect to SMTP host.

Postby nadi » Sun Oct 21, 2012 11:04 pm

hi,

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->IsSMTP();
$mail->Host = "mail.yourdomain.com";
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com";
$mail->Port = 587;
$mail->Username = "*******@gmail.com";
$mail->Password = "*********";
User avatar
nadi
New php-forum User
New php-forum User
 
Posts: 9
Joined: Sun Mar 04, 2012 11:19 pm

Return to PHP General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron