Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a webpage if i run the page it will sent one mail.

is it possible to sent an email every day 8pm.
Posted

Why you need web page for such task? I would create simple console application to send email and then by using windows scheduled task I will run the console application exe file on every day 8pm.
if you need to do this only using ASP.NET read This technique by Jeff Atwood[^] for Stackoverflow and also check http://www.quartz-scheduler.net/[^] library for scheduling tasks.
 
Share this answer
 
v2
you can do it by creating sql job also and schedule your job for every day with time 8:00 AM
 
Share this answer
 
No code can run automatically. You need to create a trigger which would invoke/execute the method to send the email.

You can either create a JavaScript interval for this, to trigger the function to send the email if the time is 8AM. Otherwise, you cannot expect the code to run automatically. Even if would, it would run forever and would send an email if the time is 8AM.
 
Share this 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