Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VBA Visual Basic for Applications (Microsoft) FAQ

Office / VBA General

How do I bypass the Outlook security message when trying to automate emails (Best option) by thefarg
Posted: 26 Jan 12

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:

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.

Back to VBA Visual Basic for Applications (Microsoft) FAQ Index
Back to VBA Visual Basic for Applications (Microsoft) Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close