Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How do I strip or decode the header and footer from messages like this one?

Avatar of jvutechnc
jvutechnc asked on
PHP
6 Comments1 Solution977 ViewsLast Modified:
The message is "test body".  My php script is connecting to an IMAP server and inserting the message into a database.  However, it's inserting what appears to be the MIME header and footer also.  I just want the message.  Thank you.    I'm not an expert in PHP, so any code examples you can provide would be great. e.g. mime decoder


------=_Part_61734_626075708.1278340795961 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable test body=20 John Vu=20 Help Desk Analyst=20 JanPak Inc.=20 office 704.892.0219=20 cell 704.621.0639=20 jvu@janpak.com=20 janpak.com =C2=A0 =E2=80=A2 green.janpak.com=20 Distinctive, Responsible Solutions=20 ------=_Part_61734_626075708.1278340795961 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Times New Roman; font-size: 12pt; color: #000000'= >test body

John Vu
= Help Desk Analyst

JanPak Inc.
office 704.892.0219
cell 704.6= 21.0639
jvu@janpak.com

janpak.com =E2=80=A2 green.janpa= k.com
Distinctive, Responsible Solutions



------=_Part_61734_626075708.1278340795961--