Category "outlook"

To filter mails from inbox which are sent to another recipient?

In Outlook Interop, using Outlook = Microsoft.Office.Interop.Outlook; To filter unread emails, I'm using the following code Outlook.Application oApp = new Out

Outlook ReportItem.Body returning messed up encoding

If certain users automate the Outlook Client to view bounce backs/ReportItems in a shared inbox, rather than returning the clear text of the message as indicate

How to handle security pop-up in outlook using C#

While Automating Outlook using Microsoft.Office.Interop.Outlook a security pop-u is getting displayed saying "A program is trying to access a email folders....

Outlook item change events in C# misfired

I'm developing an Outlook add-in, that communicates with a server via PHP. I'm synchronizing data between Outlook items and server data. Whenever the user mak

Outlook attachment names in DASL

I am trying to get a list of attachments in the Outlook table. I have tried below code. It throws an error. Any help is much appreciated as I am new to DASL q

Is Folder.PropertyAccessor safe to call from managed code?

We recently finished development of a VSTO Outlook add-in. For some configuration data, it uses custom olText properties on a Folder. When our add-in detects t

How to search recipients of previously sent mail?

I have a code which checks the subject in my e-mail and warns me if I already sent an email with this subject. I experienced it would be smarter if it checks fo

How to Left-Align HTML Table, created from an Excel Range, in an Outlook Body?

I want to copy a selected range from Excel to the body of an Outlook mail (Office 2013). The table is pasting with Center Align. I want to paste with left-align

Why is a line added to .Body when creating mail?

I use an Outlook rule to run a batch file in Windows that takes as input the Subject and the Body of the email (this means two arguments). If I run the line dir

Automatically Allow Programmatic Access to Outlook

There is a Public Shared Folder that exists on a corporate exchange server. I am trying to connect to the outlook folder, and monitor it for incoming mail. H

MAPI_E_NO_ACCESS error setting RDOPstStore property

I'm attempting to set (actually clear) the PR_PST_PASSWORD property on a PST file using Redemption thusly: RDOSession session = new RDOSession(); RDOPstStore s

Print original email when it is undelivered

I'm using MS Office 2016 Desktop App on Windows 10. I didn't find any success searching online and also contacting MS Outlook Support to find that there is no e

Getting contact information from the Outlook GAL using Python and win32com

I am trying to write a script in Python that will pull the contact information from the Outlook Global Address List. For each entry, I've managed to get the nam

c# outlook addin - store data locally

Whenever an email is sent, I want someaction to be performed(we active this action by clicking some button that appears in the ribbon in the compose email windo

current code not extracting email headers for content-type

I use code from this link to get email headers from outlook. But, it is not extracting email body(content-type) correctly. Everything works fine. If you want

VBA Outlook: How to get the smtp address of the selected folder account

I have different accounts in my Outlook. Depending on the currently selected folder, I would like to find the smtp Email address of the corresponding account. (

How to close inline response

I want to close current Inline Response to do some behaviors. I have try this function: OutlookApp.ActiveExplorer().ClearSelection() but it cannot work under C

What TypeOf are these conversation headers?

I am trying to file emails using a macro, but I am having issues if the user selects a conversation header. What is the typeOf of these headers? I am trying

Copy old emails (> 6months) from Outlook to external location with outlook add-in

We have created a add-in for outlook to archive inactive emails to a harddrive location. It all works fine, except for e-mails that are not visible in the outlo

Getting Exchange Server's users timezone

I'm having a bit of a problem. I am working on a small outlook plugin(in c#) with the following functions(very simplified): Get all of the users from Exchange