Hello, I need to convert over 200k emails from .EML to .MSG. Does this feature only allow you to convert one email at a time? If so, can it be used programmatically to convert that many emails?
Hi,
Thank you for writing to Aspose support.
Could you please confirm to us if you are using Aspose.Email for .NET or Aspose.Email for SharePoint? In the former case, you can convert any number of messages from EML to MSG by loading these in a loop. However, in the lateral case, you can only convert a single EML file to MSG as shown in our documentation article of Aspose.Email for SharePoint. Please feel free to write to us if you have any additional inquiry in this regard.
Hey thanks for the quick reply.
Basically we have 200k emails stored in Sharepoint that we need to convert to .msg format for archiving. So it looks like I will need to use Aspose.Email for .NET for my solution since doing each conversion individually would take forever.
I’ll have to programmatically convert from Sharepoint list --> .eml --> .msg
I have two more questions:
1. are there any examples available of using the Aspose library to make these conversions?
2. will Aspose.Email for .Net conserve the attachments too?
Hi,
string strBaseFolder = “D:\Data\Aspose\resources\”;
// Initialize and Load an existing EML file by specifying the MessageFormat
MailMessage eml = MailMessage.Load(strBaseFolder + “AnEmail.eml”);
// Save the Email message to disk in ASCII format
eml.Save(strBaseFolder + “AnEmail.msg”, MailMessageSaveType.OutlookMessageFormatUnicode);
//Save the Email message to disk in Unicode format
eml.Save(strBaseFolder + “AnEmail.msg”, SaveOptions.DefaultMsgUnicode );