Use the ItemAdd event instead. Here's a sample:
Print Emails Automatically - VBOffice
In the Startup procedure you need to point it to the shared mailbox folder.
If a DLL is really not registered, then Outlook cannot load it. So I'd start looking there. If you use the project compatibility mode, there can be lots of entries in the registry. Maybe your way to unregister left some entries there.
Just curious, why do you have two different versions, why...
Changing that address triggers the PropertyChange event twice, once for SendUsingAccount, once for SentOnBehalfOfName.
As to the layout, good luck. Look at the messages's HTMLBody property.
Get the EntryID instead of the SearchKey, and then use GetItemFromId to retrieve the object. If the item is not stored in your default store, get the StoreID as well.
Without knowing the mentioned article, you can move emails based on criteria like subject, sender, etc. That doesn't work for opening any folder. That is for a one-click solution you'll need 1 button per folder.
The documents are printed in order of the time the spooler receives them. If there are multiple ones coming in at the same second, they get any other order, maybe by subject - I don't know. So, just wait two seconds before you send the next document to the printer.
Rules cannot save emails to the file system. Here's a macro you can use as a starting point:
Save Emails to the File System - VBOffice
Keep in mind, you'll loose some advantages of having the emails in Outlook, like advanced searches, grouping etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.