I have developed a website and want to send an auto-generated mail to new user's regarding the website on every 3rd day from their registration day.
I don't know is it possible or not. If it is possible, can I know how ?
Thanks for the help..
I have developed a website and want to send an auto-generated mail to new user's regarding the website on every 3rd day from their registration day.
I don't know is it possible or not. If it is possible, can I know how ?
Thanks for the help..
To get every day the users who are 3,6,9 days old etc. you need to run daily a SQL statement along the lines of (this is T-SQL syntax):
SELECT UserName, EMail FROM Users WHERE (cast(RegistrationDate as int) - cast (GETDATE() as int)) % 3 = 0 AND RegistrationDate > GETDATE()
As to which method to use for your daily task, as we say in English "you pay your money and you take your choice". However, I do not think it a good idea to have a timer on your website just to do a once a day job. Better would be something like Task Scheduler on Windows or cron on Unix/Linux.
Using C#
Using SQL