Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
I am developing a project where i need to send Message/SMS automatically by fetching the data from database.

I am able to send messages by selecting or clicking the button from asp.net page but the messages should be send even i would't login the page.

Actually its a Schedule that i need to send when the date matches.
Posted
Updated 27-Feb-17 20:29pm
Comments
[no name] 2-Jun-14 9:20am    
Sounds like a job for the task scheduler not your website.

See my past answer - Timer control in asp.net[^].
Quote:
For sending mails, you can create Console Application and add that to the Windows Task Scheduler.
You can select the Date and Time when to start and also set the repetition frequency.

It would automatically trigger, when the time interval is reached and repeat itself.
 
Share this answer
 
Comments
ZurdoDev 2-Jun-14 10:22am    
+5 for giving an example.
Thanks. :)
Congrats Ryan. You are now a 100 K pointer. :)
ASP.Net is not the right tool to do this because code does not run all the time. It only runs when someone visits a page.

You'll want to create a windows app, console app, or windows service to do this.
 
Share this answer
 
Comments
Ryan, you are approaching fast towards a 100 K. All the best. I am also following you. :P :D

My 5++. I also tried to explain more in my answer.

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