Selamat datang di Warung EMBAH # Blog ini dibuat sejak Oktober 2013 # Motivasi utama untuk berbagi informasi, pengalaman, banyolan, dan lain-lain # Silahkan dilihat, dibaca dan jangan lupa komentarnya # Yang mau jadi followers/member silahkan jangan malu-malu # Semoga bermanfaat...

Friday, May 15, 2015

A program is trying to send an e-mail message on your behalf

We’re using an application which can send notification messages to our customers. It does this via Outlook but for each email that we send out we get the warning below:

"A program is trying to send an e-mail message on your behalf. If this is unexpected, click Deny and verify your antivirus software is up-to-date."

We then have to wait a few seconds before a progress bar is to 100% before we can click on Allow.
Needless to say, this is very annoying and quite a time suck as it does this for every email.
Is there a way to suppress these security alerts even if it is just for this application?

Outlook gives that warning message when an add-in or application wants to send an email or access Outlook data in an unexpected or insecure way. 

Two other variants which you may encounter are

"A program is trying to access e-mail address information stored in Outlook. If this is unexpected, click Deny and verify your antivirus software is up-to-date."

and

"A program is trying to perform an action that may result in an e-mail message being sent on your behalf. If this is unexpected, click Deny and verify your antivirus software is up-to-date."

Nowadays, getting any of these prompt actually shouldn’t be much of an issue anymore as most add-ins and applications have been updated to prevent triggering these security prompts. Besides, by default, Outlook is configured to not show these alerts when your virus scanner is up-to-date. 

If you still get one of the prompts you can undertake several actions to prevent them from popping up again. 

 This annoying wait dialog should not come up under normal circumstances.

Check for updates of the add-in or application

Initially, it is up to the add-in developer to properly integrate his/her solution with Outlook and prevent the security prompts from happening.
If you are working with an older version of the software, check with the vendor or developer of the product to get the latest version. 

As the add-in developer, you can work with Redemption, developed by fellow Outlook MVP Dmitry Streblechenko, which makes it easier to program your solution without triggering such prompts (and makes it easier to program against Outlook in general as well).

Trust Center Settings

Since Outlook 2007, no security prompts will be shown when you have a virus scanner installed which reports its status to Windows and reports its status as “Valid”.
  • Outlook 2007
    Tools-> Trust Center…-> Programmatic Access
  • Outlook 2010 and Outlook 2013
    File-> Options-> Trust Center-> Trust Center Settings…-> Programmatic Access

In this configuration, you shouldn’t get any security prompts. The greyed out settings can only be changed when you start Outlook with administrative privileges.


The greyed out settings above determine whether or not a prompt is being shown. The default setting is: Warn me about suspicious activity when my antivirus software is inactive or out-of-date (recommended)

This means that a security prompt is only triggered when your antivirus status is reported as “Invalid”.

The other 2 options either always show or never show security prompts regardless of the antivirus status.

As the settings are greyed out, you can only change them when you start Outlook with administrator privileges. You can do this from the context menu that you get when you hold the SHIFT button while right clicking on the Outlook shortcut button in Taskbar while Outlook is closed. For other methods and detailed instructions with screenshots see::

No comments:

Post a Comment