MIME Part 2

Giganews Newsgroups
Subject: MIME Part 2
Posted by:  Peter Edley (Pet…@cww.org.uk)
Date: Fri, 9 Dec 2005

Sorry i accedently posted before i'd finished lets try again

Help please, I am new to using Indy.Sockets and I am currently working on using it retreive emails from a pop3 account.

I can get the system to connect and retreive the subject and from parts, the problem starts when trying to retreive the main text of the email.

the code i'm using is:

for (int i = 0; i <= xMsg.MessageParts.Count-1; i++)
{
txtBody.Text += xMsg.MessageParts[i].ResolveContentType(xMsg.Body.ToString());                        }
txtBody.Text += xMsg.Body.ToString();

This piece of code works fine plain text messages but when it tries to retrive the text from a MIME email it just displays.

This is a multi-part message in MIME format.
This is a multi-part message in MIME format.
This is a multi-part message in MIME format.

How do I get indy.sockets to retrive the contents from MIME emails.

Replies