Email or Txt Alert when PC with Teamviewer goes offline

Is there a way to configure some sort of alert when one of my pc's goes offline?