Skip to content
Back to skills

Frappe Notifications

ASecurity

Frappe/ERPNext email, Notification doctype, alerts, system notifications and realtime. Use when sending emails, building Notification rules, email templates, in-app notifications, or frappe.publish_realtime.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add irfanzahoor/frappe_core_skills --skill frappe-notifications --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Frappe Notifications?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Frappe Notifications
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/irfanzahoor-frappe-notifications/badge)](https://www.skillsdirectory.com/skills/irfanzahoor-frappe-notifications)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: frappe-notifications
description: Frappe/ERPNext email, Notification doctype, alerts, system notifications and realtime. Use when sending emails, building Notification rules, email templates, in-app notifications, or frappe.publish_realtime.
---

# Frappe Notifications

## Choose
| Need | Use |
|---|---|
| Email/alert on a doc event, configurable by users | **Notification** DocType (ship as fixture) |
| Email from code | `frappe.sendmail` |
| Bell-icon notification | `Notification Log` via `frappe.get_doc({...}).insert()` or `enqueue_create_notification` |
| Live UI update | `frappe.publish_realtime` |
| Reusable email body | Email Template |

## frappe.sendmail
```python
frappe.sendmail(
    recipients=[doc.owner],
    subject=_("Order {0} approved").format(doc.name),
    template="order_approved", args={"doc": doc},   # templates/emails/order_approved.html
    reference_doctype=doc.doctype, reference_name=doc.name,  # shows in timeline
)
```
- An Email Account with "Enable Outgoing" is required.
- Keep the default queueing. Never `now=True` in production (it blocks, and on v16 it doesn't commit).
- Send from `on_submit` / `on_update`, not `validate` (validation may still fail).
- Bulk mail goes through `frappe.enqueue`.

## Notification DocType
- Channel: Email / System Notification / SMS / Slack.
- Event: New, Save, Submit, Cancel, Days Before/After, Value Change, Method.
- Condition: `doc.status == "Overdue"`. Message: Jinja with `{{ doc.name }}`.
- Recipients: by field (`owner`, a Link to User/Email), by role, or CC.

## Realtime
```python
frappe.publish_realtime("my_event", {"name": doc.name}, user=frappe.session.user)  # or doctype/docname
```
```js
frappe.realtime.on("my_event", (data) => { ... });
```

## Debug
Check **Email Queue** (status, error), **Error Log**, that the scheduler is enabled (`bench doctor`),
and that `mute_emails` is not set in site_config.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.