Save as Msg

Hello.

Is it possible to save an MailMessage-object in msg-format?

MailMessage ms = MailMessage.Load(@“D:\temp\test.msg”, MessageFormat.Msg);
(1)ms.Save(@“d:\temp\t1.eml”,MessageFormat.Eml);
(2)ms.Save(@“d:\temp\t2.msg”, MessageFormat.Msg);

(2) throws an exception: Not support format

Is there another way to do this or is it not supported?

Thanks.


Thanks for considering Aspose.

Saving a MailMessage into Microsoft Outlook Message file is not supported. Only loading from Msg format and saving into Eml or Mht are supported.

Because Eml format is an open file format for email message document transfering. Every mail client will be able to read Eml. If you are choosing a document format for your mail message, I think Eml could be good enough.

Thanks,

Does Aspose.Networks fully support Mht? We have tried to save an email containing attachments and gifs, but in the resulting mht file the attachments and the gifs are missing.

Thanks for your post.

The current release does not support attachment and gif on it.

Hi iret,

when saving MSG file format will be supported?

Thanks

Hello iret,

Actually what I need is to remove attachments from specified MSG file and save it again without attachments. Is it possible?

Thanks.

Thanks for considering Aspose.Network.

We need time to investigate this feature. I will get back to you later.

Thanks

Hello,

We will support deleting attachments from the Outlook Message files directly. Our development team have finished the code for this feature. After the test pass, we will release it soon.

Or perhaps, you can explain more detail of your scenarios. Therefore, we can do more testing on it before the official release

Thanks,

Hello,

We have released a new version of Aspose.Network. The empty attachment bug you mentioned has been fixed. Please check it out.

http://www.aspose.com/Community/Files/54/aspose.network/entry95314.aspx

Thanks,

Hello,

I need this msg attachment stripping functionality. I have version 3.6.3.1 of this library but cannot set the static DestroyAttachment method. Is there another version of the library I need to get?

David

Hello,

Please try the following code to destroy the attachments in the Outlook Message,

[C#]
using Aspose.Network.Outlook;
//Destroy attachments from Outlook Message files
MapiMessage.DestroyAttachment(@"c:\outlookmessage.msg");

Let me know if you have any problems,

Best wishes.