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

S

Swimtoo

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?
 
N

neelamani Padhy

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
 
N

neelamani Padhy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top