Wrox Programmer Forums
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 14th, 2006, 09:25 AM
Authorized User
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default Email Scheduler

I am working on email scheduler. The user would be able to schedule emails at certain times to run through the day,week,month with time. Scheduler continuously run in the system and sends email alerts for that time.

Any ideas how to send emails for the exact time.

for example:
Email1 should go at 7/15/2006 9:01:00 AM
Email2 should go at 7/15/2006 10:01:00 AM
Email3 should go at 7/15/2006 10:01:00 AM
Email4 should go at 7/15/2006 10:03:00 AM
Email5 should go at 7/15/2006 10:04:00 AM
Email6 should go at 7/15/2006 10:06:00 AM
Email7 should go at 7/15/2006 10:10:00 AM
Email8 should go at 7/15/2006 10:24:00 AM

Any help grealy appreicated.

Old March 13th, 2007, 11:16 AM
Registered User
Join Date: Mar 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

I've done more or less the same thing in an app before. As long as you're working with a database it's pretty easy.

First, store the date and time for the first send attempt. Then simply setup a timer to run every few seconds, (no shorter than the connect timeout property), check the database for date and time less than now, compile and send the email, set the date and time to the next schedule depending on the parameters.

Similar Threads
Thread Thread Starter Forum Replies Last Post
C#Web service- scheduler pzmrcd C# 1 August 14th, 2007 09:35 AM
What should i use---Job scheduler or Thread mohit_malik555 Pro Java 0 August 3rd, 2006 08:14 AM
Automatic Report Scheduler nbanaji Crystal Reports 1 September 9th, 2004 12:20 PM
Automatic Report Scheduler nbanaji General .NET 0 September 5th, 2004 11:23 AM
windows task scheduler using VB Karthikv21 Beginning VB 6 0 July 2nd, 2004 04:56 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.