jherbison
10-28-2007, 03:54 PM
I am trying to create an email script that pulls emails with IMAP, seperate the parts and put each part into a different variable to be submitted to a MySql database.
I am having 2 problems.
1. Trying to actually pull a readable section of the message. Each time I get the following message. I was wanting to pull just the quoted-printable section or whatever section I need to. All I get for the body of the message is:
Message: This is a multipart message in MIME format. ------=_NextPart_000_0019_01C8195F.A8391580 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This is a test email sent from outlook. ------=_NextPart_000_0019_01C8195F.A8391580 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
This is a test email sent from outlook.
------=_NextPart_000_0019_01C8195F.A8391580--
I can't figure out how to pull just the message part.
The second thing that I am having problems with is attachments, but I will work on that once I get the message section fixed.
Thanks,
jherbison
I am having 2 problems.
1. Trying to actually pull a readable section of the message. Each time I get the following message. I was wanting to pull just the quoted-printable section or whatever section I need to. All I get for the body of the message is:
Message: This is a multipart message in MIME format. ------=_NextPart_000_0019_01C8195F.A8391580 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This is a test email sent from outlook. ------=_NextPart_000_0019_01C8195F.A8391580 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
This is a test email sent from outlook.
------=_NextPart_000_0019_01C8195F.A8391580--
I can't figure out how to pull just the message part.
The second thing that I am having problems with is attachments, but I will work on that once I get the message section fixed.
Thanks,
jherbison
