Send Email Automatically in 24 hours through Vb.Net web application

Sudhanshum
Sudhanshum used Ask the Experts™
on
Hi i have .net application and I am maintaining Logs,What I want is I want to email log details every day automatically in 24 hours.How it will be possible in Asp.net Vb.I am using smtp to send mail manually by clicking on button But i want to make that automatic.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
Write another (non web - maybe console or WinForms) application that you will run on the server from the Windows Tasks Scheduler. Web apps are not built to run things at intervals!

Author

Commented:
Which one will be better,Windows application or windows service? Please let me know.
Senior .Net Consultant
Top Expert 2016
Commented:
I prefer Windows application as you can build a UI to debug it while still running it easily from a task scheduler. Check http://emoreau.com/Entries/Articles/2008/11/Passing-arguments-to-an-application-startup.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial