Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, March 18, 2016 8:43 AM
Hi,
We have aplication (asp.net mvc) and we use quartz for example to send email to our clients. All is ok when our clients are active but we have problem when nobady use aplication in the weekend and IIS goes into sleep then quartz will not send emails.
Can you help me how we can fix this problem?
All replies (2)
Friday, March 18, 2016 8:53 AM ✅Answered
Use Quartz to make a request to a page on the site every 15 minutes to prevent the application going idle. The page can be just a generic handler (.ashx file) that doesn't actually do anything in the ProcessRequest method, but the request itself is all that's needed to keep the application going.
Friday, March 18, 2016 11:20 AM ✅Answered
My opinion to you use DB mail send mail from database(sql server) with schedule job to send mail.
https://blogs.msdn.microsoft.com/sqlagent/2010/10/13/sql-database-mail-send-emails-from-sql-server/
or
http://stackoverflow.com/questions/11140597/iis-app-pool-recycle-quartz-scheduling