Can't connect to gmail-imap.l.google.com,993: Connection refused Imap Error

Discussion in 'PHP' started by computerzworld, Apr 24, 2009.

  1. #1
    Hello,
    I am getting error like "Can't connect to gmail-imap.l.google.com,993: Connection refused" while trying to open imap connection on the server using imap_open. I have checked about IMAP connection on server using phpinfo() and it displays that its on , on the server.

    ------------------------------------------------------------------------------------------------------------------------------
    imap

    IMAP c-Client Version 2004 SSL Support enabled Kerberos Support enabled

    -------------------------------------------------------------------------------------------------------------------------------

    And here is my imap connection string to open imap connection.

    $serverName = "{imap.gmail.com:993/imap/ssl}INBOX";

    The same thing is working on my localhost. But don't know why its not working on the server. Is there any another setting that I have to make in order to make it work? Please help me. Thanks in advance.
     
    computerzworld, Apr 24, 2009 IP