PC Review


Reply
Thread Tools Rate Thread

how to disable outlook security messages

 
 
swap
Guest
Posts: n/a
 
      17th Apr 2009
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?


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      17th Apr 2009
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 = "(E-Mail Removed); (E-Mail Removed)"
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, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"swap" <(E-Mail Removed)> wrote in message
news:2D217109-7136-41B6-8633-(E-Mail Removed)...
>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?
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Disable outlook security? Cor Ligthert[MVP] Microsoft Dot NET 0 16th Apr 2009 06:49 AM
Disable Outlook Security Pietro Microsoft Access 7 13th Jun 2008 05:22 PM
Disable Outlook 2K3 Security Feature Brian Messier Microsoft Outlook Discussion 2 29th Sep 2004 08:35 PM
Re: How to disable outlook security-settings Alex Nichol Windows XP General 0 21st Sep 2004 08:14 PM
Re: How to disable outlook security-settings molsonexpert Windows XP General 1 20th Sep 2004 07:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:51 AM.