heartbeat = 0 means no email