Send mail and push notifications using ajax method

I’m developing a plugin in which it has a button which can hide and unhide post/topic,now what I want to know is that is there any ajax method using JavaScript to send email and push notifications to all the users/subscribers who have subscribed to “watching”, “watching first post”,“tracking” after the post/topic is unhidden.