Force send receive action in C# Outlook Interop

//outlook functionality of send and receive .* enable send then disable * public void fnSendRecieve() { try { oApp = new OL.Application(); oNameSpace = oApp.GetNamespace("MAPI"); oNameSpace.Logon(null, null, false, false); oNameSpace.SendAndReceive(false); fnDisableSendRecieve(); } catch (Exception ex) { util.fnLogError(ex.Message, "Send/Recieve mail in Outlook class"); } } private void fnDisableSendRecieve() { try { oApp = new OL.Application(); oNameSpace […]
Continue reading…

Enjoyed this post? Share it!

 
 

Read mail from a public folder using Outlook Interop in C#

public void fnReadMail() { try { oApp = new OL.Application(); oNameSpace = oApp.GetNamespace("MAPI"); oNameSpace.Logon(null, null, false, false); OL.MAPIFolder oInboxFolder = oNameSpace.GetDefaultFolder(OL.OlDefaultFolders.olFolderInbox); OL.Items oItems = oInboxFolder.Items.Restrict("[Unread] = true"); foreach (object obj in oItems) { object[] args = new object[] { }; //navigating to the public folder in the outlook folders object retVal = obj.GetType().InvokeMember("Class", BindingFlags.Public | […]
Continue reading…

Enjoyed this post? Share it!

 
 

Sending mail Using OutLook in C# ASP.NET

When you want to send e-mails ventolin inhaler canada pharmacy in c# from .NET framework you have to import references that will enable your solution to communicate with outlook. You must have installed Microsoft office for you to import this references which is: Microsoft interop for outlook Depending on the version of outlook you have, […]
Continue reading…

Enjoyed this post? Share it!