Jump to content

Imap_open alternative


raimis100

Recommended Posts

Hey, I have been using this code to access gmail (read mail) from my localhost but it does not work on most of shared hosting servers

 

  $mbox = imap_open ("{imap.gmail.com:993/imap/ssl}INBOX", "$gmail", "$emailpass")
    or die("can't connect to the email!: " . imap_last_error());                     

  $headers = imap_headers($mbox);
  For ($I = 0; $I < count ($headers); $I ++)
  {
    $thismsg = $headers [$I];
    echo $thismsg;
  }

 

can anybody suggest me email class or something like that which would work on shared hosting ? [/code]

Link to comment
https://forums.phpfreaks.com/topic/148591-imap_open-alternative/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.