473,563 Members | 2,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable Item.Send Outlook Warning from Access?

My macro uses the Send Object (VBA Item.Send) function to email a
spreadsheet to an Outlook contact list. I want the function to be completely
automatic but Outlook displays a security warning message (...another
program is attempting to automatically email...) that requires user
intervention before the macro will finish execution. Can anyone advise me on
how to disable the Outlook warning? I tried the Warnings Off function but
realized it applies to the Access application, not to an external
application. Any help will be greatly appreciated!
May 31 '06 #1
9 28816
I think you would need to adjust the security settings in Outlook, not
normally a good thing.

My solution was to display the message and have the user click the Send
button in Outlook.

"JBuckner" <bu******@mail. unc.edu> wrote in message
news:44******** **@news.unc.edu ...
My macro uses the Send Object (VBA Item.Send) function to email a
spreadsheet to an Outlook contact list. I want the function to be completely automatic but Outlook displays a security warning message (...another
program is attempting to automatically email...) that requires user
intervention before the macro will finish execution. Can anyone advise me on how to disable the Outlook warning? I tried the Warnings Off function but
realized it applies to the Access application, not to an external
application. Any help will be greatly appreciated!

May 31 '06 #2
I know of no way around this prompt from within Access.

If you're using SQL Server for your data, you can use xp_sendmail to send it
from there, but then you don't get a copy in your Sent folder.
May 31 '06 #3
Try SMTP, you won't get it in sent mail but you can CC yourself. This
also gives the option of sending from a no-reply address if you want.
I need to use this to get around rule against placing outlook on Citrix
servers. You can even find scripts for sending SMTP mail through
webmail servers like Gmail or Yahoo.

HTH

Alex

JBuckner wrote:
My macro uses the Send Object (VBA Item.Send) function to email a
spreadsheet to an Outlook contact list. I want the function to be completely
automatic but Outlook displays a security warning message (...another
program is attempting to automatically email...) that requires user
intervention before the macro will finish execution. Can anyone advise me on
how to disable the Outlook warning? I tried the Warnings Off function but
realized it applies to the Access application, not to an external
application. Any help will be greatly appreciated!


May 31 '06 #4
Microsoft security updates made it impossible to do this
programmaticall y.

There is a software product out there that gets around it. I think it
is called something like "Click Yes" A google search should find it
for you. although I believe it still gives you the delay/processing
window until it can respond to the request.

May 31 '06 #5
microsoft DOES release a patch to disable this

or you can go back to an ancient version of outlook.. like 98 or maybe
even 97
I would love to bitch-slap the developer at Microsoft that let this bug
out in the wild.. it's like these assholes don't use their own dogfood;
they just dont give a shit anymore

and it's been 5 years

assholes in redmond should fix this immediately
Ron2006 wrote:
Microsoft security updates made it impossible to do this
programmaticall y.

There is a software product out there that gets around it. I think it
is called something like "Click Yes" A google search should find it
for you. although I believe it still gives you the delay/processing
window until it can respond to the request.


May 31 '06 #6
JBuckner wrote:
My macro uses the Send Object (VBA Item.Send) function to email a
spreadsheet to an Outlook contact list. I want the function to be completely
automatic but Outlook displays a security warning message (...another
program is attempting to automatically email...) that requires user
intervention before the macro will finish execution.


You may wish to use CDO. Here is a sample.

Public Sub VerySimpleSendM ailWithCDOSampl e()

Dim iCfg As Object
Dim iMsg As Object

Set iCfg = CreateObject("C DO.Configuratio n")
Set iMsg = CreateObject("C DO.Message")

With iCfg.Fields
..Item("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2
..Item("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
= 25
..Item("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
"smtp.aim.c om"
..Item("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e")
= 1
..Item("http://schemas.microso ft.com/cdo/configuration/sendusername") =
"MyUserName "
..Item("http://schemas.microso ft.com/cdo/configuration/sendpassword") =
"MyPassord"
..Item("http://schemas.microso ft.com/cdo/configuration/sendemailaddres s")
= "Lyle Fairfield <ly***********@ aim.com>"
..Update
End With

With iMsg
..Configuration = iCfg
..Subject = "Temp.xls"
..To = "lf********@cog eco.ca"
..TextBody = "This is the latest!"
..AddAttachment "C:\Program Files\Backup Scripts\Temp.xl s"
..Send
End With

Set iMsg = Nothing
Set iCfg = Nothing

End Sub

I believe that you can link to your Outlook Contacts (File - Get
External Data - Link Tables) to get your addresses.

May 31 '06 #7
On Wed, 31 May 2006 13:22:56 -0400, "JBuckner" <bu******@mail. unc.edu>
wrote:

That would defeat the purpose of the warning, wouldn't it? The warning
is there so users are alerted to unusual behavior (e.g. a virus
surrepticiously sending mail on your behalf). If you could turn it off
programmaticall y, so could a virus writer.

You'll have to use a different method (Lyle has a good suggestion,
"Outlook Redemption" is another), or turn these warnings off globally
(which you can if you have an Exchange back-end; not sure if you're
using PST).

-Tom.

My macro uses the Send Object (VBA Item.Send) function to email a
spreadsheet to an Outlook contact list. I want the function to be completely
automatic but Outlook displays a security warning message (...another
program is attempting to automatically email...) that requires user
intervention before the macro will finish execution. Can anyone advise me on
how to disable the Outlook warning? I tried the Warnings Off function but
realized it applies to the Access application, not to an external
application. Any help will be greatly appreciated!


May 31 '06 #8
Tom van Stiphout wrote:
On Wed, 31 May 2006 13:22:56 -0400, "JBuckner" <bu******@mail. unc.edu>
wrote:

That would defeat the purpose of the warning, wouldn't it? The warning
is there so users are alerted to unusual behavior (e.g. a virus
surrepticiously sending mail on your behalf). If you could turn it off
programmaticall y, so could a virus writer.

You'll have to use a different method (Lyle has a good suggestion,
"Outlook Redemption" is another), or turn these warnings off globally
(which you can if you have an Exchange back-end; not sure if you're
using PST).

-Tom.
My macro uses the Send Object (VBA Item.Send) function to email a
spreadsheet to an Outlook contact list. I want the function to be completely
automatic but Outlook displays a security warning message (...another
program is attempting to automatically email...) that requires user
interventio n before the macro will finish execution. Can anyone advise me on
how to disable the Outlook warning? I tried the Warnings Off function but
realized it applies to the Access application, not to an external
application . Any help will be greatly appreciated!


Or use a free little utility called Express Click Yes.

Bob
Jun 1 '06 #9
There are two ways to get round this neither of them can be implemented in
Access.

1) There is a product call "Click Yes" which runs in the users system tray
and automatically clicks Yes on the dialog
2) The exchange admin can implement the security update (see
http://support.microsoft.com/default...;en-us;Q263297)
--

Terry Kreft
"JBuckner" <bu******@mail. unc.edu> wrote in message
news:44******** **@news.unc.edu ...
My macro uses the Send Object (VBA Item.Send) function to email a
spreadsheet to an Outlook contact list. I want the function to be completely automatic but Outlook displays a security warning message (...another
program is attempting to automatically email...) that requires user
intervention before the macro will finish execution. Can anyone advise me on how to disable the Outlook warning? I tried the Warnings Off function but
realized it applies to the Access application, not to an external
application. Any help will be greatly appreciated!

Jun 1 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
12049
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to use PHP to get inside an OWA (Microsoft Outlook Web Access) website to send email that way? The reason I ask is because my corporate office is going...
0
9087
by: Akira | last post by:
Could someone tell me how to send outlook appointment email from asp page? I would like appointment email just like one outlook can send out. I tried to look for an answer for this, but it seems exchange server has to be installed on web server if I want to use the following code?? Is there way to send outlook appointment email without using...
6
1895
by: Bob Alston | last post by:
I am using the Outlook library to send emails from Access. I have Outlook open and run a program to respond yes to the security question (Express click Yes). It seems to take about 5 seconds for each email to get sent. Does this seem like the normal amount of time for others who do this? Any tricks to speed it up?
1
2292
by: Dean Slindee | last post by:
I have a VB.NET application where I am writing emails from rows in a table. For each email, an dialog box with an Outlook warning message appears. I would like to be able to write the emails without getting this message for each email. Text of the message: A program is trying to automatically send e-mail on your behalf. Do you want to...
1
5950
by: Mr T | last post by:
I know how to send email from Access and I know how to create a custom form in Outlook. but.... How do I put the email info from Access into the Outlook custom form ??? Dim MyDB As Database Dim MyRS As Recordset Dim objOutlook As Outlook.Application Dim objOutlookMsg As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient Dim...
0
1463
by: topspin | last post by:
I'm trying to pool contact list and code works fine but its open an outlook warning massege, please help me. var i,j : integer; OutlookApplication1 : OleVariant; NameSpace : OleVariant; AddressLists : OleVariant; AddressList : OleVariant; AddressEntries : OleVariant; begin
1
2454
by: =?Utf-8?B?VGVkZXNjbw==?= | last post by:
I am running Outlook Express 6 on my home computer. I am able to access my work email from home it is Outlook Web Access. I understand that the two are different. I can not insert pictures with Outlook Web Access, I can not do half of what I can with Outlook Express 6. How can I make Outlook Web Access more like my home Outlook Express 6?...
1
2566
by: kumana1 | last post by:
This site is fantastic, first of all. Second of all, thank you for your time in this matter. I have been using some code that was posted on here (I apologize for not being able to remember who) to send out emails from Outlook through Access. This has been working great until recently. When there is no entry in the email address field of my...
4
9863
by: macca | last post by:
hi, Does anybody know if it's possible to log into Outlook Web Access using PHP? I mean, if I have the username, password and email address I need to have a link that opens directly into Outlook Web Access inbox or something. Is this possible, and if so, does anyone know where I can find more information on how to do this?
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.