php1 Posted October 24, 2008 Share Posted October 24, 2008 I am using imap functions to read email from my email server.but i am not getting the correct output My expected output is: this is for testing My original output is : =Messagethis is for testing code $mbox = imap_open ("{imap.gmail.com:993/imap/ssl}INBOX", "[email protected]", "sms") or die("can't connect: " . imap_last_error()); $i = 1; $text=strip_tags(imap_fetchbody($mbox,$i,"1")); echo $text ; An error "=Message" is coming with all my messages. How to avoid this ? Link to comment https://forums.phpfreaks.com/topic/129927-problem-with-imap-_fetchbody-function/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.