Open all or some Fields of a generated .msg for Input

Last post 02-23-2009, 8:40 AM by saqib.razzaq. 1 replies.
Sort Posts: Previous Next
  •  02-23-2009, 7:08 AM 166431

    Open all or some Fields of a generated .msg for Input

    Greetings from Germany,

    we generate the 2 output formats .eml and .msg depending on the login information for webclients with "groupwise" or "outlook" as email client. The file with the correct format is delivered as a link to the generated .eml/.msg file, which is opened at runtime by the local email client. Users can complete their mail within their client and can send it.

    The .eml-based groupwise mail shows "to", "cc", ... as input fields and looks like an normal, manually created mail "ready-to-use" (like after file-new-message). But the .msg file opened by outlook leads to "readonly" input fields  outlook users can only change the fields by forwarding the mail.

    Msg files directly saved by "file-save as"  in outlook work fine like the .eml files!  I tried the following:  I saved a .msg in outlook manually and deployed it on the server. If the application returns a link to that copied file, outlook opens properly with input fields. Using the copied file as Inputdata for 'aspose.load("server/dir/copyfile.msg", MessageFormat.Msg)' and returning that filename, leads to the wrong behaviour too! 

    I tried aspo.load("server/dir/copyfile.msg", msg) followed by aspo.save("server/dir/creatfile.msg",msg)  as well. Comparing the created content with the content of the original file, did not help.

    How can I reach, that fields in .msg files are shown as input fields directly?

    Thanks a lot for your help!

    Tom

    Filed under: .MSG;aspx
     
  •  02-23-2009, 8:40 AM 166443 in reply to 166431

    Re: Open all or some Fields of a generated .msg for Input .NET

    Hi Tom,

    Thanks for considering Aspose.

    You can save the .msg file in draft mode by using MapiMessage.SetMessageFlags(MapiMessageFlags.MSGFLAG_UNSENT). After setting this flag and saving the msg file, it will open in draft mode in Outlook.

    Please refer to http://www.aspose.com/documentation/file-format-components/aspose.network-for-.net/creatingsaving-outlook-message-msg-files.html for details.

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
View as RSS news feed in XML