esnagel
Director of Common Sense
I've got my PHP script reading a POP account, and I can pull everything out nicely, but I'm getting some strange subject lines. Here are two:
Now the first one, I can almost make out:
But doing the same thing for the second, I get junk
I've also tried utf8_decode() and didn't get any closer. Any ideas how I can read these subjects?
Thanks,
Eric
Code:
Subject: =?utf-8?Q?It=27s=20time=20to=20brighten=20your=20weekends...=20Launching=20Blooms=20to=20Go=21=20=3A=29?=
Subject: =?UTF-8?B?RFZEIERpc2Mtby1yYW1hIOKAlCBGbGlja3MgVW5kZXIg?= =?UTF-8?B?JDchIFRoZSBTb24gb2YgQnV5bmFuemEgU3RyaWtlcyE=?=
Now the first one, I can almost make out:
PHP:
php > echo(quoted_printable_decode("=?utf-8?Q?It=27s=20time=20to=20brighten=20your=20weekends...=20Launching=20Blooms=20to=20Go=21=20=3A=29?="));
=?utf-8?Q?It's time to brighten your weekends... Launching Blooms to Go! :)?
But doing the same thing for the second, I get junk
PHP:
php > echo(quoted_printable_decode("?UTF-8?B?RFZEIERpc2Mtby1yYW1hIOKAlCBGbGlja3MgVW5kZXIg?= =?UTF-8?B?JDchIFRoZSBTb24gb2YgQnV5bmFuemEgU3RyaWtlcyE=?="));
?UTF-8?B?RFZEIERpc2Mtby1yYW1hIOKAlCBGbGlja3MgVW5kZXIg?= =?UTF-8?B?JDchIFRoZSBTb24gb2YgQnV5bmFuemEgU3RyaWtlcyE=?
I've also tried utf8_decode() and didn't get any closer. Any ideas how I can read these subjects?
Thanks,
Eric