Click here to Skip to main content
15,919,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Guys,

My client wants some reports to send him end of the month by automatically from the website.

How can I do that? Which way should I follow? Any ideas?

Awaiting...

Thanks

Haluk
Posted

1 solution

You can do this using Global.asax class

In your Application_Start event, Check that if the system datetime.date is the end of the month

If it is execute your email sending procedure..

Also note that Application_Start is fired multiple times in a day..So you will need to log that you already sent the email to prevent your application from sending multiple mails
 
Share this answer
 
Comments
haluk_78 10-Oct-12 3:25am    
The thing is the application doesn't have to execute... If it doesn't execute then Global.asax will not work?..!!

I want the user doesn't have to open the website... If the system time is end of the month then an e-mail will be sent out to him automatically without executing anything.

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