ASP.net

  • Thread starter Thread starter subair ka via .NET 247
  • Start date Start date
S

subair ka via .NET 247

(Type your message here)how can i send mail automatically using ASP.net daily in a web application?
 
You can't automate it directly in IIS or your web app because you can't be
certain that your web app is running. You could use any number of task
schedulers on the server, or a Windows Service if you have that access to
the server. If not, how about having a client call a web page dialy, which
will make sure the app is running daily. That could directly trigger the
email or trigger some validation or check to see if the email needs to be
sent.

Dale
 
umMm.. if your application is hosted with a third party host and you
do not have access to task scheduler/windows services there, then its
a good idea to get yourself a cheap unix hosting account that comes
with 'cron' feature... with cron you can schedule (using web based
interface) your unix hosting sever to HTTP GET
http://.../yourwebapp/generatereport.aspx periodically...
on other hand (your web application) in generatereport.aspx
you can define what to do periodically?

--
Hope this helps,
Zeeshan Mustafa, MCSD

DalePres said:
You can't automate it directly in IIS or your web app because you can't be
certain that your web app is running. You could use any number of task
schedulers on the server, or a Windows Service if you have that access to
the server. If not, how about having a client call a web page dialy, which
will make sure the app is running daily. That could directly trigger the
email or trigger some validation or check to see if the email needs to be
sent.

Dale
 
Back
Top