create outlook msg file

Posted on 2013-05-16
Medium Priority
Last Modified: 2013-06-27

Is it possible to create an outlook .msg file programmatically using asp.net c#?

we tried to create this .msg file in our .net application and force download the .msg file using the below code

Response.ContentType = "application/vnd.ms-outlook";
Response.AddHeader("Content-Disposition", "attachment; filename=myfile.msg");

But it was not working fine, any suggestions?
Question by:rajathi_franco
  • 2
  • 2
LVL 42

Expert Comment

by:Meir Rivkin
ID: 39173893

Author Comment

ID: 39173906

Thank you for looking into this query.

The above question is related to contenttype. When downloading msg file, instead of directly opening outlook, our application prompted error as "The command line argument is not valid, verify the switch you are using...".

Can you please help here to know how to create binary formatted unicode msg file through our .net application or do i need to change contenttype?
LVL 71

Expert Comment

by:Éric Moreau
ID: 39174235

Author Comment

ID: 39174348
Hi, do you mean to say, there are no options in in-built .net components and we need to buy third party components for this functionality?
LVL 71

Accepted Solution

Éric Moreau earned 1000 total points
ID: 39174404
many things are not built in .Net! Do you prefer to use the built-in grid or to rely on a 3rd party grid? the framework itself can't do everything and some stuff are done better by complements.

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question