Last post Jun 05, 2019 02:28 AM by Fei Han - MSFT
Jun 04, 2019 01:18 PM|fytan88|LINK
Jun 04, 2019 01:31 PM|PatriceSc|LINK
Unclear. Keep in mind we have no other context than what you tell us.
Do you try to change something (and what ?) in the "save as" dialog which is triggered when sending back a file to the browser ?
Or do you mean you are trying to change something in a a dialog triggered from the Outlook desktop app ? (unrelated to ASP.NET maybe an Outlook Addin and once again knowing which "changes" you want to make could help to better understand what you are trying
Jun 05, 2019 02:28 AM|Fei Han - MSFT|LINK
Welcome to ASP.NET forums.
How to make changes in the outlook file save as type in the save file dialog box using C#?
Firstly, as PatriceSc suggested, please clarify more about your requirements and problems, so that we can understand it better.
Besides, if you'd like to find and use .NET libraries to read and write MSG file, you can search about it using your favourite search engine to find some .NET libraries for reading/writing MSG file(s),
I'm using following libraries:
using (var msg = new MsgReader.Outlook.Storage.Message(@"C:\test.msg"))
var from = msg.Sender;
var sentOn = msg.SentOn;
var recipientsTo = msg.GetEmailRecipients(MsgReader.Outlook.RecipientType.To, false, false);
var recipientsCc = msg.GetEmailRecipients(MsgReader.Outlook.RecipientType.Cc, false, false);
var subject = msg.Subject;
var htmlBody = msg.BodyHtml;
using (var email = new Email(new Sender("firstname.lastname@example.org", "xxxx"),
new Representing("email@example.com", "xxxxx"),
"This is the subject"))
email.Subject = "This is the subject";
email.BodyText = "this is text";
email.BodyHtml = "<html><head></head><body><b>Hello World</b></body></html>";