MIME

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

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();

Replies