+ Reply to Thread
Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By hezuo
  • 1 Post By wrccc

Thread: PHPMailer unable to connect to Gmail

  1. #1
    priamo is offline x10Hosting Member priamo is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    2

    PHPMailer unable to connect to Gmail

    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 Code:
    $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!!

  2. #2
    hezuo's Avatar
    hezuo is offline x10 Sophmore hezuo is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Huascar, Santa Anita
    Posts
    174

    Re: PHPMailer unable to connect to Gmail

    I'm currently having the same problem. Can anyone give us a hand please?
    dinomirt96 likes this.

  3. #3
    wrccc is offline x10Hosting Member wrccc is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    2

    Re: PHPMailer unable to connect to Gmail

    So am I. Any Help?
    karimirt47 likes this.

  4. #4
    tmiket is offline x10Hosting Member tmiket is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    7

    Re: PHPMailer unable to connect to Gmail

    this one is ok:

    setsebool -P httpd_can_network_connect 1

  5. #5
    ayesh is offline x10Hosting Member ayesh is an unknown quantity at this point
    Join Date
    Jun 2010
    Posts
    30

    Re: PHPMailer unable to connect to Gmail

    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

+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 03-17-2010, 04:51 PM
  2. Replies: 1
    Last Post: 02-01-2010, 07:05 AM
  3. Unable to change mx record for gmail
    By tpaegdc in forum Free Hosting
    Replies: 3
    Last Post: 11-07-2009, 11:27 PM
  4. Replies: 0
    Last Post: 11-22-2008, 05:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers