M
mpriem
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???
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???