Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I bypass the Outlook security message when trying to automate emails (Best option)

Office / VBA General

How do I bypass the Outlook security message when trying to automate emails (Best option)

by  thefarg  Posted    (Edited  )
Many people have asked for this solution, however the most common answer is to use advaced MAPI with the Outlook Object Model or automate the clicking of a button. A better solution exists if you are willing to edit your registry.

The security popup is only triggered when attempting to use simple MAPI.
Microsoft used to provide the settings in the outlook .adm policy file but the one the currently provide for download has unfortunately had these settings removed.

Microsoft policy files serve only as a GUI for setting keys in the registry so we can edit it manually or use code.

The key is : HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Outlook\Security

Values are:
PromptSimpleMAPISend
PromptSimpleMAPINameResolve
PromptSimpleMAPIOpenMessage

Each value can be set to one of the following:
1 (Default, PromptUser), to 2 (AutoApprove), or to 0 (AutoDeny)

So to disable the security prompt for Simple MAPI Mail Send (DoCmd.SendObject and such) you need to set HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Outlook\Security, PromptSimpleMAPISend to 2.

Hope this helps.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top