Solved

create outlook msg file

Posted on 2013-05-16
5
606 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

23 Experts available now in Live!

Get 1:1 Help Now