E-mail Subject
Hi
There is problem on getting subject. Here what I did:
After connecting to the mail server using imap_open() and getting header by using imap_headers(), I used the following script to get a subject:
for($b=0; $b< {size mail box}; $b++)
{
$mailInfo = imap_headerinfo({Connection}, $b, 80, 80);
$subject = $mailInfo->fetchsubject;
echo $subject;
}
when I echo $subject, I can read some E-mail's subjects but some subjects I cannot and they looks like this:
=?utf-8?B?V2luZG93cyBYUCBhbmQgT2ZmaWNlIFhQIGZvciAkODAuIC BpbmNvcnBvcmF0aW5nIEluZG
I used those functions on php.net like base64 and 8bit but still I'm getting the same thing.
can anyone tell me how can i make that right?????
Thanks
Regards
Mani_he
|