Today I need to write a code which can send a automatic mail once in a day after the 80 days of the password changed. I have already checked the condition that password is 80 days old or not and as of now I have just putted the a message to change the password when the user login, but I also want to send him a mail also, so that the user can get the information even if he doesn't logged in the last 10 days before the password expires(because after 90 days the password will be expired).
I know how to send the mail, I know how to check the condition but I don't have any bit of idea that how to send the mail automatically and for this where should I write code so that the mail will be sent regardless the user logged in or not. I am working on the MVC 4 web application. Please help me with this!!
Thank you in Advance!!