# E-mail en pushmeldingen verzenden met de ajax-methode

**URL:** https://meta.discourse.org/t/send-mail-and-push-notifications-using-ajax-method/293890
**Category:** Development
**Tags:** notifications, email, push-notifications, development, plugin-api
**Created:** [2 februari 2024 om 10:41 UTC](https://meta.discourse.org/t/send-mail-and-push-notifications-using-ajax-method/293890 "2024-02-02T10:41:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [2 februari 2024 om 10:41 UTC](https://meta.discourse.org/t/send-mail-and-push-notifications-using-ajax-method/293890/1 "2024-02-02T10:41:17Z")

</div>

Hi!,  
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.

---

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [23 april 2025 om 08:51 UTC](https://meta.discourse.org/t/send-mail-and-push-notifications-using-ajax-method/293890/2 "2025-04-23T08:51:11Z")

</div>

```plaintext
 PostAlerter.new.create_notification(user, Notification.types[:watching_first_post], post)

```

```plaintext
PostAlerter.new.create_notification(user, Notification.types[:watching_category_or_tag], post)

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [10 december 2025 om 11:48 UTC](https://meta.discourse.org/t/send-mail-and-push-notifications-using-ajax-method/293890/3 "2025-12-10T11:48:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
