Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

i have a application which uses SMTP server to send mails, i want to use outlook dlls to do it more efficiently. Please suggest wither i can do the following activities with outlook.
1. before sending a mail in SMTP i want to create a sent item queue in outlook(outbox), through C# code
2. i want to read outlook so that my application will know how many email is sent, and how many is failed
3. i should access all the email through outlook application also.
4. can i write a job to clear old email in C# only
5. can i read read-receipts in C#
6. Can i read incoming message to a specific email id.
Posted
Comments
F-ES Sitecore 30-Sep-15 7:21am    
google "automating outlook c#" or "automating outlook mapi c#" and you'll find examples of sending emails, reading folders etc.
Nathan Minier 30-Sep-15 7:25am    
You're looking for the Microsoft.Office.Interop.Outlook library.

https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.application.aspx
j snooze 30-Sep-15 17:06pm    
I have my doubts that using office interop dlls will be "more efficient" than SMTP.

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