Email sent based on Last Login

Hello, wondering if anyone knows of a way to generate emails based on a users last login?

So for example a users hasn't logged in within the past 60 days they are sent a reminder email.