Category "outlook"

Automation error in global address list lookup

I'm trying to look up a person's email address using the Outlook global address list. Here is the VBA code I use to do it. 'Snip If firstName <>

How to refresh ActiveInspector?

I changed the sender data in the currently open mail. This is well done by the following code: Sub AktiveMailSetVonHotline() Dim oMail As Outlook.MailItem

How to reference server inbox instead of offline inbox?

I want to iterate through my entire Outlook inbox, including messages stored on the MS Exchange Server. However, when I reference my Outlook inbox via: NameSp

Embed picture in outlook mail body excel vba

I am trying to embed a range from a worksheet as an image in outlook mail body. It's saving the picture correctly but I only see blank image in the outlook mail

how to find mail that was send by MailItem.Display()

I have following requirement : Allow the user to drag & drop an email from outlook to a datagrid Prepare a reply mail, and show it so the user can review a

Outlook Advanced Search on property GlobalAppointmentID

Alright so I'm needing some help here. I working with Outlook 2007 PIA (Outlook add-in) and using the advanced search. I'm trying to write a DASL filter for the

PropertyAccessor SchemaName (Outlook MailItem attachment)

I'm trying to generate Outlook HTML-Mail with embedded image from my C# application. I've found out that I have to attach the image and referencing it in the HT

GetExchangeUser() returns null when Outlook 2016 uses Cached Exchange Mode

Developing for: Outlook 2016 Add-In: VSTO (C#) My company is running on O365 (Exchange) and I am developing an add-in which collects their exchange user inform

How do I resolve Runtime Error -2147219712 (80040600):` The operation failed

The following code snippet works in Windows 10 / Outlook 2013. In Windows 10 / Outlook 2016 I get an error at the .send line: Run-time error -2147219712 (80040

Disable outlook security warning when executing an Excel VBA code

My ultimate goal is to give any piece of information on contacts in Outlook or MS Exchange and get their name and email address without encountering any warning

Cannot retrieve the "Received Date" from an Outlook Meeting by using Powershell

I have been trying (unsuccesfully) to obtain the "Received Date" for the meetings in my Calendar by using this script. At first, I thought I could use the Crea

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