Information
This policy setting controls what happens when an untrusted program attempts to send e-mail programmatically using the Outlook object model. \n If you enable this policy setting, you can choose from four different options when an untrusted program attempts to send e-mail programmatically using the Outlook object model: \n - Prompt user - The user will be prompted to approve every access attempt. \n - Automatically approve - Outlook will automatically grant programmatic access requests from any program. This option can create a significant vulnerability, and is not recommended. \n - Automatically deny - Outlook will automatically deny programmatic access requests from any program. \n - Prompt user based on computer security. Outlook will only prompt users when antivirus software is out of date or not running. \n Important: This policy setting only applies if the ''Outlook Security Mode'' policy setting under ''Microsoft Outlook 2016\Security\Security Form Settings'' is configured to ''Use Outlook Security Group Policy.'' \n If you disable or do not configure this policy setting, when an untrusted application attempts to send mail programmatically, Outlook relies on the setting configured in the ''Programmatic Access'' section of the Trust Center.
Solution
Policy Path: Microsoft Outlook 2016\Security\Security Form Settings\Programmatic Security
Policy Setting Name: Configure Outlook object model prompt when sending mail