Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / March 2008

Tip: Looking for answers? Try searching our database.

VBA command, "Item.Send" gives Yes/No Prompt. How do I disable pro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Swimtoo - 19 Jul 2005 19:48 GMT
I am trying to automate a task in MS Access 2003.  When I use the VBA
"Item.Send" command, this prompt comes up: "A program is trying to
automatically send an e-mail message using a Microsoft Visual Basic
Application (VBA) command, Item.Send, from within Microsoft Outlook. If you
want this program to send this message, click Yes. To stop the program, click
No. If you are unsure which program is sending the message or why the message
is being sent, you should click No to help avoid the possible spread of
viruses."  I want to disable the prompt so that the email is just sent
without a need for a yes or no answer.

How do I do this?
Eric Legault [MVP - Outlook] - 19 Jul 2005 21:13 GMT
That's the #1 question in this forum.  See this link for full details:

Microsoft Outlook "Object Model Guard" Security Issues for Developers:
http://www.outlookcode.com/d/sec.htm

Signature

Eric Legault - B.A, MCP, MCSD, Outlook MVP
Try Picture Attachments Wizard for Outlook! http://tinyurl.com/ckytm
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/

> I am trying to automate a task in MS Access 2003.  When I use the VBA
> "Item.Send" command, this prompt comes up: "A program is trying to
[quoted text clipped - 7 lines]
>
> How do I do this?
neelamani Padhy - 05 Mar 2008 13:05 GMT
How to prevent Outlook security warnings from appearing?
Need to remove security alerts? With Outlook Security Manager you can easily
bypass security settings in MS Outlook and turn off an alert, or a pop-up
message with just one line of code! Unlike similar tools, Outlook Security
Manager doesn't transform OOM (Outlook Object Model) and CDO (Collaboration
Data Objects) calls to Extended MAPI calls and doesn't make development more
complicated by its own special objects. It just implements one object with
three properties that enable or disable security settings for Outlook
objects, CDO and Simple MAPI including MailMerge. These properties are
DisableOOMWarnings, DisableCDOWarnings and DisableSMAPIWarnings. Before
calling a protected object you just switch off Outlook security via the
corresponding property, and then you turn it on again. For example:

Visual Basic .NET

Dim SecurityManager As New AddinExpress.Outlook.SecurityManager  
SecurityManager.DisableOOMWarnings = True  
Try  
   ' ... any action with protected objects ...  
Finally  
   ' In any case please remember to turn on  
   ' Outlook Security after your code,  
   ' since now it is very easy to switch it off! :-)  
   SecurityManager.DisableOOMWarnings = False  
End Try  

Visual Basic 6 (VBA)

OlSecurityManager.DisableOOMWarnings = True  
On Error Goto Finally  
   ' ... any action with protected objects ...  
Finally:  
   OlSecurityManager.DisableOOMWarnings = False  

Delphi

OlSecurityManager.DisableOOMWarnings := True;  
try  
   // ... any action with protected objects ...  
finally  
   OlSecurityManager.DisableOOMWarnings := False;  
end;  

Outlook Security Manager is an in-process COM object that handles all
internal events of the Outlook E-mail Security Engine rather than "hacks" or
"hooks". Outlook Security Manager directly supports three platforms, .NET,
VCL and ActiveX (VB.NET, C#, C++ MFC/ATL/.NET, Visual Basic 6, Delphi, VBA,
Word MailMerge) and takes into account the platforms' peculiarities. Please
note all the editions are included in one license package. Fix Outlook
security problem programmatically with a line of code! Enjoy Outlook
development with no irritating popup warnings. You can order Outlook
Security Manager now, get it instantly and use Outlook objects without any
security troubles.

url:http://www.ureader.com/msg/1081800.aspx
neelamani Padhy - 05 Mar 2008 13:06 GMT
How to prevent Outlook security warnings from appearing?
Need to remove security alerts? With Outlook Security Manager you can easily
bypass security settings in MS Outlook and turn off an alert, or a pop-up
message with just one line of code! Unlike similar tools, Outlook Security
Manager doesn't transform OOM (Outlook Object Model) and CDO (Collaboration
Data Objects) calls to Extended MAPI calls and doesn't make development more
complicated by its own special objects. It just implements one object with
three properties that enable or disable security settings for Outlook
objects, CDO and Simple MAPI including MailMerge. These properties are
DisableOOMWarnings, DisableCDOWarnings and DisableSMAPIWarnings. Before
calling a protected object you just switch off Outlook security via the
corresponding property, and then you turn it on again. For example:

Visual Basic .NET

Dim SecurityManager As New AddinExpress.Outlook.SecurityManager  
SecurityManager.DisableOOMWarnings = True  
Try  
   ' ... any action with protected objects ...  
Finally  
   ' In any case please remember to turn on  
   ' Outlook Security after your code,  
   ' since now it is very easy to switch it off! :-)  
   SecurityManager.DisableOOMWarnings = False  
End Try  

Visual Basic 6 (VBA)

OlSecurityManager.DisableOOMWarnings = True  
On Error Goto Finally  
   ' ... any action with protected objects ...  
Finally:  
   OlSecurityManager.DisableOOMWarnings = False  

Delphi

OlSecurityManager.DisableOOMWarnings := True;  
try  
   // ... any action with protected objects ...  
finally  
   OlSecurityManager.DisableOOMWarnings := False;  
end;  

Outlook Security Manager is an in-process COM object that handles all
internal events of the Outlook E-mail Security Engine rather than "hacks" or
"hooks". Outlook Security Manager directly supports three platforms, .NET,
VCL and ActiveX (VB.NET, C#, C++ MFC/ATL/.NET, Visual Basic 6, Delphi, VBA,
Word MailMerge) and takes into account the platforms' peculiarities. Please
note all the editions are included in one license package. Fix Outlook
security problem programmatically with a line of code! Enjoy Outlook
development with no irritating popup warnings. You can order Outlook
Security Manager now, get it instantly and use Outlook objects without any
security troubles.

url:http://www.ureader.com/msg/1081800.aspx
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.