send reminder e-mails

Posted on 2004-04-21
Last Modified: 2013-12-25

i'm preparing a project called smarthome. this project are similar to alert/reminder system. i'm using VB 6.0 and MS Access for my database and this system is a standalone.

in this system, users have to define their assets (let's say cars) date to be serviced. system will notify the user via e-mail when the time has arrived (or maybe 2 weeks before the actual date).

1)   how do i determine the frequency of reminders. lets say the service date is on 3/04/2004. so the reminders will be sent 2 weeks before, 1 week before, 3 days before, the day before and the day itself.

2)   reminders will be sent to user through e-mail defined by the user.

3)   user's computer (in which the system is operating) must stay online to send messages. messages will stay pending if there's no connection to the internet. ( am i right?)

ok that's it.
I offer you my points...ALL OF IT !!!!!
hope you can help.
Question by:aquanok
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 35

Accepted Solution

[ fanpages ] earned 88 total points
ID: 10885829
Hi aquanok,

1) In VB or Access the use of DateDiff will aid your reminder schedule
    (see internal product help, or here for examples:

2) Not sure if your second point was a question, but just a statement.

3) Yes, a connection to an external mail server needs to be maintained before any information in e-mail format can leave the machine & be sent to a named recipient.


LVL 35

Expert Comment

by:[ fanpages ]
ID: 10885847
Hi aquanok,

Better example of DateDiff usage:



Assisted Solution

OracleSWN earned 86 total points
ID: 10901579
Hi aquanok,

       BFN's point with the datediff will work well. I have a similar application that sends out reports to users and you will need to have the application running to send out the report. Once you have established a query/view that the system checks for reminders, the below is some useful code to send out e-mails bypassing any outlook/express applications.

Set objEmail = CreateObject("CDO.Message")
With objEmail
      .FROM = Chr(34) & "Maintence Reminder" & Chr(34) & ""
      .To = ""
      .Subject = "Maintence Reminder"
      .TextBody = "This is a reminder to ......." & vbCrLf & vbCrLf & "Sincerely," & vbCrLf & "Name"  '<--- (vbCrLf) enter a carriage return character
      .Configuration.Fields.Item("") = 2
      .Configuration.Fields.Item("") = ""
      .Configuration.Fields.Item("") = 25
End With
Set objEmail = Nothing
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.


Author Comment

ID: 10906294
how do i send these messages when the time's arrived
without any interactions from the user.(no command button)

Assisted Solution

leechoonhwee earned 86 total points
ID: 10916163
In your main sub you need to have a timer function that checks itself every 24 hrs or compile your program so that you can use MS Scheduler to invoke your program every day at certain timing.

LVL 35

Expert Comment

by:[ fanpages ]
ID: 10916194
You could post e-mails in your outbox (back to the sender) that are scheduled to be sent at the designated date (prior to the service) and then then next time following the "reminder" that e-mail is checked, the messages will return back into the inbox.

B)ye F)or N)ow,

f)an p)ages.

Author Comment

ID: 10925613

how do i do that?

Expert Comment

ID: 10926668
The best way is to use Microsoft Scheduler to invoke your program at regular interval. Please provide your email if you need screenshots for it.

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month8 days, 3 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question