473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Send an Automated Email

Hi,

I have a database that contains information of contracts / tenders and need to do the following task:

* when a contract reaches its expiry date, i want to send an automated email to notify the Account manager.

I have a query/form that displays all the expired contracts but wanted to add some 'automation' into it.

Any advice would be much appreciated.

Also, if the Access DB isn't open and current date matches the contract expiry date, is there a method to still send the automatic email?

Thanks

JD
Jan 2 '08 #1
1 2635
NeoPa
32,556 Expert Mod 16PB
I know little detail about emailing or scheduling tasks from Access. However, I can share with you how I'd approach this and some ideas of where to look in the hope that it can be of use to you.
I would avoid a fully automatic approach if possible and simply run a procedure which would batch-process the items required.
If it's absolutely necessary to automate this I would look at using an external scheduler to open the database and have a form start on startup. The code in this form could then be used to trigger the process you need. Alternatively, if you know the database will be open anyway, you can generally use Timer code (OnTimer & TimerInterval properties of the form) to trigger your process.
Check into command line parameters too. If these are accessible to your form code, they can be used to enable the code to behave differently depending on how it was opened (human or scheduler).
Again, I'm no great expert on sending e-mail from within Access but I believe there is expertise here to help with that if required (some existing threads discuss various options). Bear in mind that (at least) some methods require the operator to accept the attempt to send the email. This would be a problem if you intend to have it work automatically and unattended.
Jan 2 '08 #2

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

Similar topics

2
by: Ronny Sigo | last post by:
Hello all, I a struggling for a few days now to find a way to send automated mail. I succeeded except that MS Outlook always gives me those 2 stupid warnings that 1) a "program tries to get...
3
by: Christian Hamel | last post by:
As said in the topic? I understand that this security has been added following many viruses out there but we have an automated system that we need to put in place that send emails. Any idea?...
17
by: DP | last post by:
hi, is there a way to send an e-mail to a customer, using ms access?? or some kind of automated mail merge, so the user only has to review the body, and click send? ive got a customer table,...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
3
by: sentiboy | last post by:
I am using the following code for sending email through mapi in VS 2005 environment: Public objSession As New MSMAPI.MAPISession Public objMessage As New MSMAPI.MAPIMessages ...
17
by: rdemyan | last post by:
My app creates a building report. My users have requested that I provide functionality to e-mail these "building reports" to building managers once a month. So assuming that I have the...
9
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
1
by: lanlife | last post by:
Hello All, I am building an application which i will like to send an automated sms through a gateway to gsm phone numbers.I want it to query the database to get data at a particular time and...
2
by: techsri | last post by:
Hi, We are going to launch a website which offers free e-learning courses to the users. we are facing some problems to build my site. The problem is about, We want add push email feature to our...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
0
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...

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.