It's likely that your not assigning them, just setting the database value.. instead you'd need to load a ticket object and call the assign method, this will trigger the notifications.
Oh, you're doing it in class ticket, then just use $this->assignToStaff($id, "Auto assigning network tickets", true);
You can write whatever note you want, and the true is for notifications, so setting false will prevent them.