outlook

Expand/collapse folders in the Outlook navigation pane programmatically

I am writing an add-in for Outlook using C#. Is there are way to programmatically expand and collapse folders in the Outlook 2007 folders navigation pane? Also, is there an event fired when a folder is expanded? ...

How do you add drag-n-drop upload ability from Outlook to a Web form?

I am looking for a way to allow users to upload Outlook emails to a web-based system in a simple manner. I can get this to work in a manual fashion for the users. They can drag and drop the email from Outlook to their desktop, which creates a .msg file. This works very nicely, esp. if there are attachments in the email which are als...

Outlook VBA: How to get started - need to save attachment from current email to a derived folder.

I'm looking for a starting point here, so no code to post I'm afraid ! I would like (if possible) to be able to open an email in Outlook (in the normal way, from the front-end), and then click a button to run a macro, which will extract the attachments from this email and save them to a directory path (derived from the subject). Sound ...

Outlook VBA Macro: Best way to indicate 'please wait'...

What's the best practice for indicating to the user that a Macro is running within Outlook ? The macro can take around 1-30 seconds to complete. I want to avoid a modal 'msgbox' popping up before the macro is run, as this can be annoying. I would rather avoid the hourglass cursor if possible, and wondered if there was a better way. Is...

Outlook VBA - Get Details Of Current Active (Or Open) Email

I am completely stuck as to how to retrieve details of an email which is either currently selected or open. In fact, I can't find any details on how to access an email. It seems you can traverse the entire folder structure and get all emails, but that doesn't really help me. I don't suppose I can get some pointers? And yes, I hate VB...

Different Unique Ids created using WebDAV and Exchange vs Outlook

I am creating an appointment in Exchange via WebDAV, but the UId created is not the same as if I create the appointment in Outlook. The UId I believe is the same as the GlobalObjectId and should be unique and not change. The UId if created via WebDAV is: CD0000008B9511D182D800C04FB1625DDD67374428B4C644A0A359A2586E30B3 The UId if cre...

Open website in Outlook's internal browser via VBA

I'm looking to open a given webpage via VBA. I can do this using: Set browser = CreateObject("InternetExplorer.Application") browser.Navigate ("http://google.com") but this opens an instance of IE. I'd like to open it in Outlooks integrated browser window. I'd presume this is fairly easy, but I'm not familiar with VBA and googling...

Get Mailbox name in Outlook Addin using VSTO

I'm working on Outlook 2003 AddIn using VSTO.Is there a way to Get the Mailbox Name OR NTUserName of the user. ...

Is it possible to save a PDF attachment back to an email in Outlook?

Can a pdf attachment be opened from outlook, edited, and then saved back to the original email? In other words, edit the copy in the email and not a local downloaded copy. Of course I can store the pdf in a folder and link to it (I'm generating the emails with the pdf attachments), but thought I would ask in case there is a simple way to...

C# How to get the send of behalf email address in outlook add-in

Hi, I'm trying to get the sender email address from email that is send using another email address. The sender as shows in outlook is [email protected] on behalf of User Name [[email protected]]. The MAPI object has a method SentOnBehalfOfName that returns "User Name" but not the email address. Does anyone know how to rec...

How do I get the Outlook VBA "FreeBusy" method to return the truth?

I've got a simple bit of Outlook VBA which looks up the FreeBusy status of a number of meeting rooms to determine whether or not they are free. In the last couple of days, the following code: sResult = olRecipient.FreeBusy(olCurrentItem.Start, 15, True) causes incomplete FreeBusy information to be returned, often all zero's. If I th...

Paste picture from outlook email to c# picturebox

Hello, I copied a picture out of an outlook 2007 message. In my App I want to paste that image to a picturebox using code: pictureBox1.Image = Clipboard.GetImage(); Returns an exception. How to paste a picture from outlook? If I copy a picture from mspaint my code works. thanks ...

How to display custom info bar in outlook 2007 message window?

Hi, I want to display a custom info bar in my outlook message. Something like the screenshots here: http://www.sendshield.com/product/solution.php# I have seen outlook form regions, and I dont think its a form region. If it is, then I am in trouble, as the only way I think to do is, and I may be wrong, is to use Replace type, in whic...

Save message properties only locally (Outlook)

How can an Outlook add-in set a MAPI property (for example, the body content) on a message, but only have it saved in the local cache (and not sent back to the exchange server)? I've seen this done with a few encryption add-ins. I'm open to using pretty much any API that could do the trick. Thanks! ...

Differentiating between a Compose Inspector and a Read Inspector

Hi, Is there a way to tell if the current inspector window, in Outlook 2007, is a Read window, or a Compose window? I know we can capture events, and set flags on it, but I dont want to capture New/Reply/Forward events. Is there a way to tell this from the Inspector object? Any property? Any MAPI property? A pointer in the right dire...

The guard has gone beserk (or how do I keep multiple MAPI clients running together?)

I have a standalone program that I am trying to hook into MAPI to send emails automatically using the default system (Outlook for the most part) available. For the most part, it works quite well, and everything sends fine. However, after a while, Outlook will start to flip out about my program's accessing the MAPI system, and will star...

Why does SaveAs Method throw error?

I have the following vba code is part of a larger script. The issue I am having is that that the SaveAs function continuously throws an error even though the Outlook message has been saved to a directory on the system. Inspection of the the Err object yields no results as everything is either blank or 0. Another weird issue is that whe...

Can I iterate through all Outlook emails in a folder including sub-folders?

I have a folder which contains a number of emails and sub-folders. Within those sub-folders are more emails. I'd like to write some VBA which will iterate through all emails in a certain folder, including those in any of the sub-folders. The idea is to extract the SenderEmailAddress and SenderName from every email and do something with ...

Using Redemption to reply to a mail only intermittently sets the body text

I'm using the below method to reply to mails coming in to a business function mailbox. The body text being added is only intermittently being set. This method is only called when someone has emailed in to unsubscribe from a mailing but the email address of the sender (or in the body) hasn't been found in the database and we want to ask ...

How does incredimail import email accounts automatically?

I installed incredimail yesterday to experiment with something. To my surprise I found out that it was able to pull email accounts from windows live mail including my username and password!! How is it possible for incredimail to do it? More serious concern is what stops spyware/virus programs to do the same? Is this a big security conc...