how to disable outlook security messages

Status
Not open for further replies.
C

c3dhcA

I have created script for auto reply in outlook and created rule to execute

it but whenever this rule runs it give following popup

" A program is trying to access e-mail addresses you have stored in Outlook.

Do you want to allow this"

And I have to click on yes.

I want to prevent this popup so that it will automatically reply mails

according to rule

How can I disable this popup?
 
S

Sue Mosher [MVP]

You need to structure the "run a script" procedure so that it derives the

MailItem from the intrinsic Application object, like this example:

Sub RunAScriptRuleRoutine(MyMail As MailItem)

Dim strID As String

Dim olNS As Outlook.NameSpace

Dim msg As Outlook.MailItem

Dim rply as Outlook.MailItem

strID = MyMail.EntryID

Set olNS = Application.GetNamespace("MAPI")

Set msg = olNS.GetItemFromID(strID)

' do stuff with msg, e.g.

Set rply = msg.Reply

rply.Body = "What you want the reply to say."

rply.To = "who@where.com; who2@where2.com"

rply.Send

Set msg = Nothing

Set rply = Nothing

Set olNS = Nothing

End Sub

CAUTION: Using this technique has been known to result in corrupt VBA code.

Be sure to export your code modules or back up the VBAProject.otm file.

Sue Mosher

"swap" <swap> wrote in message

news:2D217109-7136-41B6-8633-401E78ECD9FE@microsoft.com...
> I have created script for auto reply in outlook and created rule to execute
> it but whenever this rule runs it give following popup

> " A program is trying to access e-mail addresses you have stored in
> Outlook.
> Do you want to allow this"
> And I have to click on yes.
> I want to prevent this popup so that it will automatically reply mails
> according to rule
> How can I disable this popup?

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M Disable Contact Card Results when using "Search People" in Outlook Ribbon Using Outlook 7
J How do I disable advertising in Outlook 2019? Using Outlook 13
GregS Outlook 2016 Can I disable the Outlook Outbox? Using Outlook 2
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
N How to disable shortcuts for Pilcrow in Outlook Using Outlook 0
O Outlook Web Access - how to disable spam filter Using Outlook 6
Diane Poremsky Disable Protected View for Outlook Attachments Using Outlook 0
E Outlook 2010 disable date auto-complete Using Outlook 2
Diane Poremsky Disable Outlook Add-ins (Apps) Using Outlook 0
Diane Poremsky Disable Live Preview in Outlook and Word Using Outlook 0
D Preventing users to disable an Outlook Add-in Using Outlook.com accounts in Outlook 5
B How do I REALLY disable Outlook Junk E-mail sorting in OL2010 and/or 2013? Using Outlook 1
R Outlook Cache Mode Terminalserver disable through Registry Using Outlook 1
Rupert Dragwater how to disable billingual dictionary in outlook 2010 Using Outlook 9
A Disable hotmail from Outlook email account Using Outlook 1
J Outlook's auto time zone update for meeting requestsHow to REMOVE or DISABLE? Using Outlook 1
J Disable outlook 2010 no-subject warning Using Outlook 4
E Disable outlook 2010 no-subject warning Using Outlook 9
N Disable control CTRL button when dragging items/folders - Outlook Outlook VBA and Custom Forms 2
D Disable Junk E-mail Filter in Outlook 2007 Using Outlook 13
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
P Disable Instant Search in Outlook 2007 Outlook VBA and Custom Forms 9
L Is there a way to completely disable the "archive" box? Using Outlook 1
U Disable "Always ask before opening" Dialog Using Outlook 3
R Disable conversation thread from replying of recipients in the same subject. Please help Using Outlook 0
N Disable Auto Read Receipts sent after using Advanced Find Using Outlook 4
M Making Subject field writable (disable Read Only) Outlook VBA and Custom Forms 2
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
P Disable Spam Notifications & Sounds Using Outlook 3
J Using VBA to disable alerts / warnings Using Outlook 2
Diane Poremsky Disable the Unsafe Hyperlink Warning when Opening Attachments Using Outlook 0
N How to disable user defined fields in BCM forms Using Outlook 2
F Disable "Find related messages" Using Outlook 1
davecazz Anyway to disable the peek rollovers? Using Outlook 1
L Reading Pane - COMPLETELY DISABLE? Using Outlook 10
M trying to disable junk email filter. completely. Using Outlook 4
Z OL2007 - is there a way to disable the "feature" that cripples mails that are in the "junk" folder? Using Outlook 37
S Cannot disable OWA light Exchange Server Administration 5
A How to disable the pop-up “Reponses to this meeting will not be tallied." Using Outlook 0
D Show this folder as an e-mail Address Book is enabled but I want to disable Using Outlook 2
J How to disable syncing folder views/layouts Using Outlook 5
R Disable request to share a calendar Using Outlook 1
T Disable the To-Do Bar permanently Using Outlook 15
D Disable Junk Email in the Registry? Using Outlook 8
A How to disable bcc option in GAL - Address Book - Exchange 2007 Exchange Server Administration 4
P disable image compression Using Outlook 5
C Disable printing Outlook VBA and Custom Forms 1
A disable a menu in active inspector Outlook VBA and Custom Forms 1

Similar threads

Top