?
Solved

create outlook msg file

Posted on 2013-05-16
5
Medium Priority
?
659 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:Meir Rivkin
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 70

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 70

Accepted Solution

by:
É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.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Integration Management Part 2
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month16 days, 21 hours left to enroll

864 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