We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Fetching mails as Memory stream using POP3


Is it possible to fetch the message to memory as a stream using POP3 from the server


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


MemoryStream ms = new MemoryStream();

client.SaveMessage(1, ms);

The above code will save the first message in the MemoryStream.