Task Management with Chat Feature

Hi, I want to create a task management app with a chat feature so if the user is offline it will email. Any ideas on how to do this? Specifically, the offline email messaging?

Hello,

This might help [Solved] How to check if user is logged in? (Workflow) - #10 by ryanck

If user is logged out, send email to user containing the message

Hope this helps.

Best,
Nino