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

Free Support Forum - aspose.com

Using Aspose.Network to save emails with attachments


I am looking for some help relative to connecting to a POP3 server. What file format is best to save retrieved emails and any associated attachments? I see the class Aspose.Network.Pop3.Pop3Client offers a SaveMessage() function that can save to .EML files. Is this optimial in terms of portability or would .RTF be better? Can Aspose.Network save to .RTF? Is there a better format to save emails/attachments?



Hi Mike,

SaveMessage() method can save the email in eml and mht format. The eml format is the RFC 822 Compliant Message Format and popular email clients can read eml files. Check out http://en.wikipedia.org/wiki/Electronic_Mail and http://www.aspose.com/documentation/utility-components/aspose.network-for-.net/importingexporting-emails.html for details.

Mht is the Microsoft HTML format can be opened with Microsoft internet explorer.

The general optimal approach would be to save in eml format. The message itself and the attachments would be saved in the .eml file.