Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a c#4 windows application.

This application creates work team meetings & then sends email to work team members.
Database is published on the internet not local because this application will be accessed from different people.

My problem is when someone creates a meeting he may say it'll repeated each week.
So what I need is to add new rows in the database for each meet week. But the problem is that I can't do that from my application because I don't know when the application opens. Maybe someone opens the appliction, creates a meeting and then closes the application & didn't open until he want to creat new meeting.

So i need something that works on published server that do that work, check if new meeting is near and send an email to members & add new row in database.
So i need code that runs automatically on server that checks every half hour if there's new meeting to do.

How can i do that?
Anyone help please.

Edited for grammar and spelling
Posted
Updated 10-Nov-11 21:33pm
v4
Comments
lukeer 11-Nov-11 3:19am    
I don't yet see why the desktop application shouldn't be able to create the weekly meetings.
Could you point that out?

What you will need to do, is to create a windows service that runs on your own server, that can check every so often whether a new meeting has been created. If the check is positive, then the service can email the respective members the exact details of the meeting.
 
Share this answer
 
Comments
[no name] 11-Nov-11 3:15am    
bt his is server is published server that i host on it my database
so how can i add this windows service to it
& that windows service 'll run automatic when server power on or must be called
Wayne Gaylard 11-Nov-11 3:18am    
You will need to have your own computer runnning this service. You will need to have a computer that can connect to the internet, and that is on all the time.
[no name] 11-Nov-11 3:20am    
but if this not available ther's no other solutions
Wayne Gaylard 11-Nov-11 3:33am    
Not as far as I know. Maybe someone else has a better solution. Sorry.
Sergey Alexandrovich Kryukov 11-Nov-11 3:45am    
After all, if a host is a server, it's natural that such code should be a Service.
My 5.
--SA
You can go for windows service for this...

for windows service starts here...
Simple Windows Service Sample[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Nov-11 3:47am    
Makes sense to serve as an quick introduction, my 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900