Hostgator and imap_open

Discussion in 'PHP' started by stephan2307, Apr 22, 2010.

  1. #1
    Hi,

    I am trying to use php and the imap functions to connect to an email account and retrieve my emails (I am with Hostgator).

    For some reason i can't connect.

    This is the code I have

    $imap = @imap_open('{'.$imap_host.':'.$imap_port.'}INBOX', $imap_userid, $imap_password) OR die(imap_last_error());
    $status = imap_check($imap);
    PHP:
    I get the following error message on the screen.

    Certificate failure for mail.xxxx.com: unable to get local issuer certificate: /C=US/postalCode=77092/ST=TX/L=Houston/street=Suite 400/street=11251 Northwest Freeway/O=HostGator.com/OU=HostGator.com/OU=Comodo PremiumSSL Wildcard/CN=*.hostgator.com
    Notice: Unknown: Certificate failure for mail.xxxx.com: unable to get local issuer certificate: /C=US/postalCode=77092/ST=TX/L=Houston/street=Suite 400/street=11251 Northwest Freeway/O=HostGator.com/OU=HostGator.com/OU=Comodo PremiumSSL Wildcard/CN=*.hostgator.com (errflg=2) in Unknown on line 0
    
    Code (markup):
    anyone knows what I am doing wrong?
     
    stephan2307, Apr 22, 2010 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    Never mind. I have fixed this now.
     
    stephan2307, Apr 22, 2010 IP