![]() |
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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi there,
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 following: - The administrative template is correctly configured (published, configured reviewer permissions for default/anonymous) - The registry setting for the user running the application is set correctly. - When opening all profiles used by the profile with outlook, the template is visible. - The mail profiles do not use cached mode exchange. - The default mail delivery location for all profiles is mailbox. There are a few strange things happening: - When I run a custom vbscript using MAPI code the model guard does not block any methods for the user. When using an user who is not added to the template it does. This tells me the template is working. - The object model guard does not always block the emails. When only a few emails need to be sent out, everything goed well most of the time. When more than 6 need to be sent out, it starts blocking the emails with the nagging popups. Does anyone have any ideas???? How can I tell that the template is correctly implemented?? Are there any regkeys I can check to see if it works?? Are there any limitations to using email profiles to SEND AS the mailbox? Does it matter that the user accounts for the mailprofiles used are disabled??? |
Ads |
#2
|
|||
|
|||
![]()
Look on the Help | About Microsoft Outlook dialog: What does it say for Security Mode?
If the behavior changed, then it's almost certain that something in the client or server configuration changed to cause the change in behavior. The ideal solution, of course, would be to use a different method other than that .ocx to send the messages -- CDO for Windows or Outlook Redemption would both be better and avoid the prompts. FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/comm....program_v ba -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "mpriem" wrote in message ups.com... Hi there, 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 following: - The administrative template is correctly configured (published, configured reviewer permissions for default/anonymous) - The registry setting for the user running the application is set correctly. - When opening all profiles used by the profile with outlook, the template is visible. - The mail profiles do not use cached mode exchange. - The default mail delivery location for all profiles is mailbox. There are a few strange things happening: - When I run a custom vbscript using MAPI code the model guard does not block any methods for the user. When using an user who is not added to the template it does. This tells me the template is working. - The object model guard does not always block the emails. When only a few emails need to be sent out, everything goed well most of the time. When more than 6 need to be sent out, it starts blocking the emails with the nagging popups. Does anyone have any ideas???? How can I tell that the template is correctly implemented?? Are there any regkeys I can check to see if it works?? Are there any limitations to using email profiles to SEND AS the mailbox? Does it matter that the user accounts for the mailprofiles used are disabled??? |
#3
|
|||
|
|||
![]()
It states Administrator/User controlled.
About changing the code; I brought that up, but they did not want to change the code. It worked before. It is not an option for now. The strange thing is that when using the profile of user executing the program, all goes well. When another profile is used, only 2 - 3 messages are being sent out and then the pop-up appears. Thanks! |
#4
|
|||
|
|||
![]()
I've never seen "Admininstrator/User controlled." It should be either Administrator Controlled, User Controlled, or Default. I'd suggest checking the registry entry again.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "mpriem" wrote in message ups.com... It states Administrator/User controlled. About changing the code; I brought that up, but they did not want to change the code. It worked before. It is not an option for now. The strange thing is that when using the profile of user executing the program, all goes well. When another profile is used, only 2 - 3 messages are being sent out and then the pop-up appears. Thanks! |
#5
|
|||
|
|||
![]()
Sorry to disappoint you
![]() controlled. Also the regkey is set properly: HKEY_CURRENT_USER\Software\Policies\Microsoft\Secu rity Dword CheckAdminSettings=1 We are using Outlook 2003 sp2 Can you confirm that using different profiles within a vb app will not pose any limitations? |
#6
|
|||
|
|||
![]()
Can you confirm that using different profiles within a vb app will not
pose any limitations? Sorry, but I don't know what you have in mind. Only one Outlook mail profile can be running at a time. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "mpriem" wrote in message ups.com... Sorry to disappoint you ![]() controlled. Also the regkey is set properly: HKEY_CURRENT_USER\Software\Policies\Microsoft\Secu rity Dword CheckAdminSettings=1 We are using Outlook 2003 sp2 |
#7
|
|||
|
|||
![]()
I mean that the vb app logs on and off to different profiles in
sequence. I reproduced a similar issue at my own workstation. I created a mailprofile for an user and gave my own credentials full mailbox access. When I use a script to send emails through simple mapi using my own profile, all goes well. When I use the same script to send emails through the other users profile, it generates a popup. Thanks, Mark |
#8
|
|||
|
|||
![]()
The primary mailbox for the other profile would need to be included in the security settings folder item that relaxes the object model guard.
Did any of the mailboxes recently move from one server to another? -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "mpriem" wrote in message ps.com... I mean that the vb app logs on and off to different profiles in sequence. I reproduced a similar issue at my own workstation. I created a mailprofile for an user and gave my own credentials full mailbox access. When I use a script to send emails through simple mapi using my own profile, all goes well. When I use the same script to send emails through the other users profile, it generates a popup. Thanks, Mark |
#9
|
|||
|
|||
![]()
Yes,
Several of them. Kind Regards, Mark Sue Mosher [MVP-Outlook] schreef: The primary mailbox for the other profile would need to be included in the security settings folder item that relaxes the object model guard. Did any of the mailboxes recently move from one server to another? -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "mpriem" wrote in message ps.com... I mean that the vb app logs on and off to different profiles in sequence. I reproduced a similar issue at my own workstation. I created a mailprofile for an user and gave my own credentials full mailbox access. When I use a script to send emails through simple mapi using my own profile, all goes well. When I use the same script to send emails through the other users profile, it generates a popup. Thanks, Mark |
#10
|
|||
|
|||
![]()
Perhpas part of the problem is that the mail profiles that you are using for those mailboxes need to be updated. I'd update the security settings item as well.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "mpriem" wrote in message oups.com... Yes, Several of them. Kind Regards, Mark Sue Mosher [MVP-Outlook] schreef: The primary mailbox for the other profile would need to be included in the security settings folder item that relaxes the object model guard. Did any of the mailboxes recently move from one server to another? "mpriem" wrote in message ps.com... I mean that the vb app logs on and off to different profiles in sequence. I reproduced a similar issue at my own workstation. I created a mailprofile for an user and gave my own credentials full mailbox access. When I use a script to send emails through simple mapi using my own profile, all goes well. When I use the same script to send emails through the other users profile, it generates a popup. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Accessing named property using outlook object model | AtulSureka | Outlook - Using Forms | 4 | December 1st 06 05:06 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 |