Click here to Skip to main content
11,489,693 members (69,270 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
In working on website where the user have to take a year membership to use it I need to notify him before 30 days via mail of expiration date. My mail code is working properly but i don't know when to Fire the Event.
plz Provide me solution where where I can call the event which will notify the the user that Expiry date is less than 30 days.
Posted 14-Nov-12 23:54pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can create windows service which will be checking for that once a day an sending email if necessary.
Or checking this from SQL server
http://msdn.microsoft.com/en-us/library/ms191439%28v=sql.105%29.aspx[^]
and sending emails from it:
SQL SERVER - 2008 - Configure Database Mail - Send Email From SQL Database[^]

Or you can create Wcf service executed from Task Scheduler.
Or something different. It depends what you want.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 565
1 Andy Lanng 233
2 OriginalGriff 213
3 Maciej Los 180
4 _duDE_ 141
0 Sergey Alexandrovich Kryukov 9,488
1 OriginalGriff 8,425
2 Sascha Lefèvre 3,344
3 Maciej Los 3,066
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 15 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100