使用PHP获取HTML格式的电子邮件正文内容时出现问题

My code(In PHP) is fetching Email, from Inbox wihich is in HTML format, and saving it in an HTML format. while fetching some Extra characters are added to the file. Example: the content in EMAIL Body

hi there

 1.      hi
 2. hello
 3. bye

but when fetched i get

hi there

1. =A0=A0=A0=A0 hi
2. hello
3. bye

I get extra characters like "=A0=A0=A0=A0". How to get rid of this?

I think, your mail body is in base64 format. Try to use this function: base64_decode