Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 1st, 2009, 1:35 AM   #1
shaknon
Newbie
 
Join Date: Nov 2009
Posts: 1
Rep Power: 0 shaknon is on a distinguished road
Automated Email Notifications

Hello,

I wrote an asp.net program that is designed to retrieve user data. The process, in which the user can log in to the system and input his data, has a Start Date and an End Date where the user is not allowed to log in before the start date or after the end date.

I want to send an email notification to the users to log in to the system and input their data. This email notification has to be sent on the Start Date of the process (which is stored in an a database table). Additionally, two reminder emails must be sent to the users of the system. The time of sending the email reminder will be calculated automatically by generating two dates between the Start Date and End Date of the process.

The problem I am facing at the moment is how to send the email notification automatically. I wrote the procedure for sending the email notification and I stored it in an asp.net web service. But how can I trigger this procedure on Start Date and on each Reminder Date?

I tried several methods and thought of using timers but to no avail.

Appreciate your help,
shaknon
shaknon is offline   Reply With Quote
Old Nov 1st, 2009, 9:15 AM   #2
CoderGuru
Professional Programmer
 
Join Date: Jan 2009
Location: Dallas, Texas, USA
Posts: 329
Rep Power: 2 CoderGuru is on a distinguished road
Re: Automated Email Notifications

Quote:
Originally Posted by shaknon View Post
Hello,

I wrote an asp.net program that is designed to retrieve user data. The process, in which the user can log in to the system and input his data, has a Start Date and an End Date where the user is not allowed to log in before the start date or after the end date.

I want to send an email notification to the users to log in to the system and input their data. This email notification has to be sent on the Start Date of the process (which is stored in an a database table). Additionally, two reminder emails must be sent to the users of the system. The time of sending the email reminder will be calculated automatically by generating two dates between the Start Date and End Date of the process.

The problem I am facing at the moment is how to send the email notification automatically. I wrote the procedure for sending the email notification and I stored it in an asp.net web service. But how can I trigger this procedure on Start Date and on each Reminder Date?

I tried several methods and thought of using timers but to no avail.

Appreciate your help,
shaknon
Setup a windows scheduled task that executes SendMails.aspx. This page selects all rows where StartTime < Now() AND StartMailSent = 0. Loop sending an email to each and setting StartMailSent = 1 so we don't resend this next time.

Have this run and many times or as little times as you want. Every 5 mins should work. I mean it wont be 100% exact to the second, but a 5 min delay should be fine.
CoderGuru is offline   Reply With Quote
Reply

Bookmarks

Tags
asp, asp.net, automatic, email, net, notification, service, vb.net, web, webservice

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Email at different but specific times sh250080 Visual Basic .NET 1 Feb 4th, 2009 1:29 AM
Is Hotmail Or The Email Server Becoming Low In Security? pr0gm3r Coder's Corner Lounge 13 Oct 14th, 2005 7:00 PM
email abuse questions melbolt Coder's Corner Lounge 25 May 23rd, 2005 9:01 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC