Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2005, 01:03 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 117
Thanks: 0
Thanked 2 Times in 2 Posts
Default 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

 
Old April 19th, 2005, 02:14 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 117
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi
I found that the problem is UTF-8. That means I cannot encode it or ....
but i have no idea how to fix it.

Thanks
Regards
Mani_he

 
Old April 29th, 2005, 11:32 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 117
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi
Any idea how can I encode UTF-8?

Thanks
Regards






Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to get support on this subject! retribution All Other Wrox Books 4 January 9th, 2009 09:09 AM
subject anabnl BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 August 16th, 2007 05:35 PM
test subject tanu80 ASP.NET 1.x and 2.0 Application Design 1 June 28th, 2007 04:08 AM
Oops, wrong subject! Aaron Edwards ASP.NET 2.0 Basics 0 September 13th, 2006 07:37 PM
mail($to, $subject, $msg, $additional_headers); buzzby PHP How-To 1 September 19th, 2005 01:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.