Solved

create outlook msg file

Posted on 2013-05-16
5
598 Views
Last Modified: 2013-06-27
hi,

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.Clear();
Response.ContentType = "application/vnd.ms-outlook";
Response.AddHeader("Content-Disposition", "attachment; filename=myfile.msg");
Response.BinaryWrite(myMemoryStream.ToArray());
Response.Flush();
Response.Close();
Response.End();

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

Expert Comment

by:sedgwick
ID: 39173893
0
 

Author Comment

by:rajathi_franco
ID: 39173906
Hi,

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?
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 39174235
0
 

Author Comment

by:rajathi_franco
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?
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 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.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now