Hi,
Is it possible to fetch the message to memory as a stream using POP3 from the server
Thanks
Jaz
Hi Jaz,
You can fetch message to stream in memory using the SaveMessage() method. It takes stream and sequence number as parameters. Following is the sample code for saving message into stream.
Pop3Client client = new Pop3Client("pop.mail.com", "user", "password");
client.Connect(true);
MemoryStream ms = new MemoryStream();
client.SaveMessage(1, ms);
The above code will save the first message in the MemoryStream.