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

Free Support Forum - aspose.com

Bug converting MailMessage to MapiMessage - The reply to address is not in a recognized format

The attached Email (.eml) cannot be converted to a MapiMessage.

(I am using the following code to convert a eml to msg file)
MapiMessage.FromEmailMessage throws an “The reply to address is not in a recognized format”

Code Snippet
  1. using (MemoryStream ms = new MemoryStream(Properties.Resources.Aspose_Total))
  2. {
  3. License lic = new License();
  4. lic.SetLicense(ms);
  5. }
  6. try
  7. {
  8. MailMessage emlMessage = MailMessage.Load("C:\\ErrorMail.eml");
  9. MapiConversionOptions saveOptions = new MapiConversionOptions();
  10. saveOptions.UseBodyCompression = true;
  11. saveOptions.Format = OutlookMessageFormat.Unicode;
  12. // The next line throws an Exception; Problem parsing the ReplyTo-Adresses
  13. MapiMessage mapiMessage = MapiMessage.FromMailMessage(emlMessage, saveOptions);
  14. }
  15. catch(Exception ex)
  16. {
  17. MessageBox.Show(ex.ToString());
  18. }

Hi Markus,

Thank you for writing to Aspose Support team.

The issue is already known to us as EMAILNET-35175 and is currently under investigation by our Product team. We’ll update you here once the fix version is available for download.

The issues you have found earlier (filed as EMAILNET-35175) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.