Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
Can any one tell me how to send email everyday at midnight 12'0 clock.

How to do this. please help me
Posted
Updated 19-Feb-14 5:33am
v2
Comments
Richard MacCutchan 19-Feb-14 11:34am    
Use a timer, when it starts your event, check the time. If it's midnight then send the email.

for this you will have to create a aspx page and through code behind page, you will have to write a function on page load to send the mails...
and after creating this page, you will have to map this page on IIS server for self execution on your required time...
 
Share this answer
 
v2
You can do this by running a Windows Scheduler. It is nothing but one Window or Console App, which will be scheduled in your Server. Inside the app, write you email sending code.

You can select the Time(when to run) and Frequency(when to repeat it again) for the Scheduler.
 
Share this answer
 
v2
you can do this with the help of windows Scheduler, asp .net can't provided this type of functionality make a another project windows or console application. Make a exe file because Window Scheduler work with exe file. so it must exe file windows or Console application. How to make a Windows Scheduler check this link for better understanding http://www.techsupportalert.com/content/how-schedule-programs-run-automatically-windows-7.htm[^]
 
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