Jump to content

Problem with imap _fetchbody() function


php1

Recommended Posts

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

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.