rajathi_franco
asked on
create outlook msg file
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-outloo k";
Response.AddHeader("Conten t-Disposit ion", "attachment; filename=myfile.msg");
Response.BinaryWrite(myMem oryStream. ToArray()) ;
Response.Flush();
Response.Close();
Response.End();
But it was not working fine, any suggestions?
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-outloo
Response.AddHeader("Conten
Response.BinaryWrite(myMem
Response.Flush();
Response.Close();
Response.End();
But it was not working fine, any suggestions?
ASKER
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?
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?
ASKER
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?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
check my post there.