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

Free Support Forum - aspose.com

Convert recieved POP3 String to outlook msg in C#

I have the E-Mail string from POP3 stream and want to save it as an *.msg file

is it possible with aspose.network and can i have a short introduction?

This message was posted using Aspose.Live 2 Forum


Thanks for considering Aspose.

If you already have the stream of the message from Pop3 server, you can pass this stream to MailMessage.Load() method and call Save() method to save it as msg file.

MailMessage message = MailMessage.Load(stream, MessageFormat.Eml);
message.Save(“test.msg”, MailMessageSaveType.OutlookMessageFormat);

More details on eml to msg conversion are available in http://www.aspose.com/documentation/.net-components/aspose.network-for-.net/eml-to-msg-converter.html article.

You may also use Pop3Client class to connect to the pop3 mail server and then save the message to disk in eml or msg format. For more details, please visit http://www.aspose.com/documentation/.net-components/aspose.network-for-.net/receiving-emails-and-saving-to-disk.html.