How do I automatically click the 'Yes' button , when Outlook's Security Guard opens prompt dialog saying that a program is trying to send an email with Outlook or access its address book.

Hi Experts,

How do I automatically click the 'Yes' button , when Outlook's Security Guard opens prompt dialog saying that a program is trying to send an email with Outlook or access its address book?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jadedataMS Access Systems CreatorCommented:
Hey indyng!

  You may have noticed that this "Security Feature" also requires the checking of a check box AND that the buttons that normally might respond to a press of the "Y" key, DO NOT.  Making it doubly difficult to automate this thru VBA.

  You have a couple choices:;en-us;238114&Product=vba;en-us;209948&Product=vba

  You could also snag a third party SMTP engine that will provide the functionality without the security nightmare.

  I continue looking for a good one,.. I have tested several.  Most are rather limp/lame.  Still looking though...

Download ExpressClickYes from here:

Bear in mind it will click yes to any request; justified or not, so switch it off when not in use.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Indy (and the rest of you),

we know you, so no reason to suspect you of foul play. But your question is actually against the rules on EE, - if we help you, then other - less considerate - persons, may find the answer and use it for malicious purposes.

There are several ways to avoid conflict with Outlook Security, - I know at least two:

1. Sign your code, and have it registered with the client
2. Use CDO instead of using SendObject or the Outlook-Object

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

jadedataMS Access Systems CreatorCommented:
Thnx Jack,

I always like to be confirmed in the few right decisions I've made (CDO) ;-)

Alan WarrenApplications DeveloperCommented:
Hi indyng,

Is there an Exchange mail server anywhere in this picture?
If so I have a solution that establishes a VALID MAPI LOGON to your exchange server using cdoex.
The current warnings are raised because there is no valid logon.
This security is only going to get tighter with each new security update released by microsoft, and so it should.
There are numerous articles around showing how to get rid of the warning, but all involve seriously reducing your security levels leaving you exposed to malicious spam spawners.

Alan :)
jadedataMS Access Systems CreatorCommented:
HEY ALAN!!! welcome back among the living!!
Alan WarrenApplications DeveloperCommented:
Hi Jack
How ya doin?
hi alan
i am also looking for the same solution but we have a mail server can you give a solution.
I had the same problem.  I found a program called Redemption that solved it.  You can find it here:

I saw the earlier post and hope this isn't in violation of any terms and conditions.  I had a real need for this as I had many reports that were automaticaly sent via email using sendobject, and it broke after I upgraded to Office XP.  I suspect there are may others who have the same delimma.  This program works great!

indyngAuthor Commented:
Thanks to all that responded
Alan WarrenApplications DeveloperCommented:
Hi gajender_99,

Have a look here:

works for logged on user, outlook/exchange.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.