473,799 Members | 3,866 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send email automatically using SendObject

121 New Member
Hi

I am using the following code to send an email from access via outlook automatically

Expand|Select|Wrap|Line Numbers
  1.  
  2. DoCmd.SendObject acSendReport, stDocName, acFormatRTF, "User", , , , , False
  3.  
  4.  
Which works fine but i get an outlook error message which says

"A program is trying to send an email message on your behalf. if this is unexpected .... Blah Blah Blah

Allow Deny Help

is there anyway that i can avoid this message and send the email without verification?

Regards Phill
Feb 2 '09 #1
3 6639
ChipR
1,287 Recognized Expert Top Contributor
If using Outlook 2007, you may be able to change the Programmatic Access setting under Tools -> Trust Center.
I'm not sure where this is located in previous versions.
Feb 2 '09 #2
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Hi. The Outlook message is intended to warn you that it is being used to send a message under programme control - guarding against spamming uses for example. I don't think you can stop Outlook from asking for this kind of confirmation; however software solutions such as ClickYes can automate the sending of the confirmation keypress for you and allow fully unattended e-mails to be sent from Access via Outlook.

There are paid-for and free versions of ClickYes available (I have the free version, Express QuickYes, installed myself and although there are some limitations it does the job well enough). If you are interested the vendor's website is http://www.contextmagic.com/express-clickyes/. No doubt there are similar solutions available from other vendors, which some searching on Google may reveal.

-Stewart
Feb 2 '09 #3
phill86
121 New Member
Hi Stewart apologies for the late reply i have been away

Thanks for your help

Phill
Feb 19 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1919
by: dave | last post by:
hi guys I m trying to execute few lines code tht i have copies from microsoft tech script centre. basically its to send email without using any smtp service. u can find the code snippet from following link. http://www.microsoft.com/technet/community/scriptcenter/en tscr/scrent16.mspx while executing this code in vbs file i was getting error:
3
4346
by: jdph40 | last post by:
I'm using Access 97. In the OnClick event of a button I have the code below. I looks at txtEmail and sends an e-mail message without further action from the user (user does not have to click Send as he would if he used DoCmd.SendObject.) However, I want to attach a report in Snapshot format. How would I modify my code to include a report? Thank you, JD
11
5037
by: Tim Smallwood | last post by:
Hi, I have an Access project that I use to allow a client to hit an SQL server at my host. This project has several forms that are used to udpate tables, etc, but I'd also like to be able to include the ability to allow my client to send an email to everyone that has subscribed to our web site by going to the table that contains the names and email addy's and then loop thru the same and send an email to them all by appending their...
1
1610
by: Just D. | last post by:
All, What is the simplest way to send an email message through the MS SQL Server? There was a method to send email messages using a standard C# way via SMTP server, but the required port was blocked on our server for the security reasons. So there is the only one method that I see to send my messages. The idea was to send these messages about some critical events, exceptions, etc., happening with our web application. The mechanism was...
6
17110
by: ErwinF | last post by:
Hi there, I would like to know the following: How to send send email attachments using WebDAV in VB .NET? Sample code please................... Thanks for your help.
0
1259
by: Parul | last post by:
How could we send mails automatically using ASP.Net. I have to make a remainder of shows by which I can send notifications of remainder to the users before there shows starts.
0
3262
by: Atenza | last post by:
Hi all, I develop an VB6 program to send email by using CDOSYS.DLL. It works fine as follow: Dim iMsg As New CDO.Message Dim iDsrc As CDO.IDataSource Set iDsrc = iMsg ' (QueryInterface) Dim iConf As New CDO.Configuration Dim Flds As ADODB.Fields
8
15004
Atran
by: Atran | last post by:
Hello Everybody, I want to send a message to somebody email using C# I have the right code but when I run the application it shown the "ArgumentExecption was unhandled" error, it is been yellow, it stop the application from running. Here is the code: using System; using System.Net.Mail; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1
3
5048
by: taurus89 | last post by:
helo...... i want to send email automatically..but it doesn't work... and display msg not sent.. this is my code....plz check if there any error....... i'm a new in php... plz help me... $recipent = "smile@example.com"; $subject = "attention"; $fname = "farah";
0
9543
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10488
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10257
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10237
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9077
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7567
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4144
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
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.