raimis100 Posted March 9, 2009 Share Posted March 9, 2009 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 More sharing options...
WolfRage Posted March 9, 2009 Share Posted March 9, 2009 IMAP extensions are probably not installed on the shared servers, to prevent you from by passing email send limits. Link to comment https://forums.phpfreaks.com/topic/148591-imap_open-alternative/#findComment-780316 Share on other sites More sharing options...
raimis100 Posted March 9, 2009 Author Share Posted March 9, 2009 Yes, but is there any other email class I could use to read mail ? ALso I do not need to send emails, I just need to read them from my gmail inbox Link to comment https://forums.phpfreaks.com/topic/148591-imap_open-alternative/#findComment-780349 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.