Building messaging applications with “Any CPU”

When building pure .NET applications doing builds using Any CPU usually go pretty smoothly. Even when mixing in some COM objects things usually go well. However, developers often run into issues with .NET code using COM objects then deploying their applications to other computers where the bitness of their development box OS does not match…

0

Sample: Use JavaScript with OOM to create an email with an attachment and display it in Outlook for sending.

This sample shows how OOM can be used with JavaScript from the command line. Use cscript to launch it – this will cause the script to write the output to the command window.   // Use this command line:  cscript test.js function test() { WScript.Echo(‘Start ————-‘); try { var outlook = new ActiveXObject(‘Outlook.Application’); var email = outlook.CreateItem(0);…

0

Code running against Outlook is very slow when PST or OST is on a network folder or non-physical/non-VHD drive.

There is no support for performance issues with Outlook where the PST or OST are on a network folder or non-physical/non-VHD drive.  See below: Limits to using personal folders (.pst) files over LAN and WAN links https://support.microsoft.com/en-us/kb/297019 Note Customers are responsible for both defining and maintaining adequate network and disk I/O. Microsoft will not assist in troubleshooting…

0

About: Outlook Object Model (OOM)

API Type: Mailbox Accessor API Interface: COM Library Business Logic: Richest Outlook item support (Mail, Tasks, Calendar, etc.). Language Support: All COM compatible languages including .NET. Direct Property Access: Only available in OOM for Outlook 2007 and later. Summary:   Outlook Object Model (OOM) is a COM library which automates Outlook.EXE.  While it doesn’t provide every configuration option and…

0

Introducing OOMExplore

There are not many large samples which use OOM code.  A couple of years ago I had written a basic Outlook Object Model (OOM) based mailbox explorer in C#.  I’ve done some touch-ups and a few additions recently and have published the code for reference.  I’ll try to expand it in the future.   OOMExplorehttp://oomexplore.codeplex.com/  …

0

Outlook Automation is for People, not for Services.

I don’t know why we see a lot of customers trying to automate Outlook from a service.  It’s pretty well documented that it’s a bad idea.  Outlook Object Model (OOM) was written for automating Outlook for a user sitting at the box running it.   See, Outlook is very personal and I do mean, it’s very,…

0

Looking for a way to save a .msg file or load a .msg file?

Outlook Object Model (OOM) can do this easily.  Below is a sample:   howto – save and load a message to a folder.Sub SaveAndLoadMsgFile()   Dim ol As Outlook.Application   Dim olns As Outlook.NameSpace   Dim oOrigItem As Outlook.MailItem   Dim oNewItem As Outlook.MailItem   Set ol = CreateObject(“Outlook.Application”)   Set olns = ol.Session   Set oOrigItem = olns.GetDefaultFolder(olFolderInbox).Items(1)   oOrigItem.SaveAs “C:\test.msg”, olMSG  …

2