A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook object model guard



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old December 29th 06, 02:08 PM posted to microsoft.public.outlook.program_vba
Mark Priem
external usenet poster
 
Posts: 1
Default Outlook object model guard

Hi there!

I'm having a really strange issue.

A client of mine uses a vb6 application to send out emails using
methods provided by the msmapi32.ocx activeX component. They
implemented the outlook security template ages ago and added the
credentials of the account running the application to it, to allow it
to send out emails and access the address book.
Now all of a sudden (I also get the chivers when someone sais that) the
object model guard of outlook is blocking the sending it out of emails.
I checked the code and it uses the MapiSession control to logon to an
existing outlook profile (using Logon() method). It then uses the
MapiMessages control to send out the emails (using Send() method). The
mails are "SEND AS" the mailboxes in the mailprofile. These are
disabled useraccounts with mailbox, which are also added to the
template.

I checked the client registry for the existence of the CheckAdminSettings
DWORD. It exists at HKEY_CURRENT_USER\Software\Policies\Microsoft\Secu rity
and when I open the users mailprofile using outlook it has the
"Administrator/User controlled" security mode set. (I also checked the other
profiles that are used in the vb program)

The strange thing is that the pop-up only appears when more than 3 messages
are being sent out.

I created a vbscript using the MAPI.Session and MAPI.Messages COM objects
and when I use the users own profile, it works. When I use another profile it
doesn't.

All profiles use online mode exchange and have their mailbox as the default
location for maildelivery.

Any ideas???
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook object model guard crisis mpriem Outlook - General Queries 17 January 3rd 07 04:20 PM
Outlook Object Model - Mail Merge Vera Lemon Outlook and VBA 1 November 1st 06 06:10 AM
Outlook COM object model not suitable for use in professional software? Jeff Outlook and VBA 5 October 31st 06 12:28 AM
How to redistribute Outlook Object Model? papachina Outlook and VBA 5 September 11th 06 07:14 PM
Help - Object Model Guard Jack Ryan Outlook - Using Contacts 2 January 26th 06 07:42 PM


All times are GMT +1. The time now is 06:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.