Click here to Skip to main content
15,878,809 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi Guys,

I have requirement i have to remind people that their licence is expiring in next 2 months.
While creating the profile i record their certifiate expiry date, users may be around 1000 +.

* Every week once system should get the list of users who's licence is expiring and send email to each user.

How should the server trigger that event of gathering the list and then send the email ? ( No using sql server to send emails )

While answering consider that i have to host the application on shared server or may be virtual server using some hosting plan.

Thanks
Posted
Comments
Member 10383365 9-Jun-14 2:02am    
Hi,
How to send auto mail while asp.net application is closed using webservice methods?

You just need a simple Windows Service.

Host in on your webserver and it will get activated as configured. Based on the configured time, the schedule items would get exectued. In your schedule, get the email content and Id's and sent it to the needed people.

To know more of Windows Servive:
Windows Services in Action I[^]
Simple Windows Service Sample[^]
 
Share this answer
 
Comments
senguptaamlan 25-Feb-11 4:31am    
I believe making a windows schedular service can suffice the need...
Dylan Morley 25-Feb-11 4:33am    
Not all ISP will allow you to install a windows service, particularly on a shared server (budget hosting!)
adi.jc 21-Nov-12 7:38am    
how to give automatic mail system in asp.net(c#).
Sandeep Mewara 21-Nov-12 8:23am    
Read my answer, look at the links and you will understand on how to automate email.
I use discount asp.net for my hosting, that allows me to create a scheduled task to hit a particular URL at a certain interval.

I'd just design a page that queries the database & perform the email routine, deploy the page & have the task poll the URL every week.

It depends who you're going to use for your hosting & what access to scheduling you have.
 
Share this answer
 
Comments
Member 10383365 9-Jun-14 1:53am    
Hi,
How to send auto mail while asp.net application is closed using webservice methods?

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