Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Is there any way to save an outlook email to a text file using C#? Manually we do it by opening the mail and clicking SaveAs and then select file type as text only. But, this should be done through C# code.

I can't find anything relevant on internet. Please help!

What I have tried:

I am new to Outlook programming
Posted
Updated 24-May-17 3:37am

1 solution

It took me about 5 seconds to google "c# outlook automation save email text" and find this;

Exporting text from email body to excel by using C#[^]

Do the search yourself and you'll find other examples.
 
Share this answer
 
Comments
raushanaj5 24-May-17 9:52am    
I already went through this. But, it's not useful
F-ES Sitecore 24-May-17 9:55am    
It shows you how to programatically acess Outlook and access the text of a mail item. Seems pretty much what you need to do. All exams are going to include code like that so if it's not useful you're going to have to elaborate on what you need as saying it is not useul is meaningless - we need to know why it wasn't useful. And if you have gone through existing tutorials then you should mention that in the "What I have tried" section to avoid people wasting time suggesting things you've already tried.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900