PHPMailer unable to connect to Gmail

priamo

New Member
Messages
2
Reaction score
0
Points
0
Hi, I'm testing PHPMailer to avoid the sending mail problem (the migration), but for some reason I can't reach gmail's smtp server:

SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host.

My conf:
PHP:
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->SMTPSecure = "ssl";                 // sets the prefix to the servier
$mail->Host       = "smtp.gmail.com";      // sets GMAIL as the SMTP server
$mail->Port       = 465;                   // set the SMTP port for the GMAIL server
Any idea?

Thanks!!
 

hezuo

New Member
Messages
174
Reaction score
0
Points
0
I'm currently having the same problem. Can anyone give us a hand please?
 

ayesh

New Member
Messages
30
Reaction score
0
Points
0
Can you connect to AOL mail ?

Gmail uses SSL auth, and may have problems with servers' OpenSSL.

First , try it out with an another(not using SSL) mail host and come back to gmail.

465 and 995 are Gmail ports and should not be a site banned from Google.

If you have problems anymore, just use domains.live.com
 
Top