You can check this extension: Magento 2 We Miss You
This email extension allows merchants to send alerts to customers who have not logged in for a while. We Miss You email notifications including reminder text, hot deal and offer, call-to-action button will return lapsing customers effortlessly.