Introduction
This article explains a simple way to add mail support in your application.
Just use the classes:
POP3class
methods:
MessageClass
methods:
string GetFrom(string messTop)
string GetDate(string messTop)
string GetMessID(string messTop)
string GetTo(string messTop)
string GetSubject(string messTop)
string GetBody(string AllMessage)
Using the code
The following sample illustrates how to use the classes:
POP3class pop3;
pop3 = new POP3class();
pop3.DoConnect("your.mail.server",110,"username","password");
pop3.GetStat();
MessageClass msg;
msg = new MessageClass();
string sMessageTop = msg.GetTop(1);
string sAllMessage = msg.Retr(1);
msg.GetBody(sAllMessage);
That's all.