Extensions/Comfy-UI on-complete-email-me
ComfyUI Extension

Comfy-UI on-complete-email-me

A feature that sends an email via Gmail once image generation is completed in Comfy-ui.

By bobddadoo·Created 2 years ago·Updated 3 months ago· 4
hyunamy/comfy-ui-on-complete-email-me
Nodes3
On cloudLocal install
Categoryutils, notify
Stars4
Updated3 months ago
Readme

ComfyUI – On Complete Notifications

한국어 | English

Get notified the moment your ComfyUI generation finishes — by email, sound, or webhook.

Long renders, queued batches, or overnight jobs: stop refreshing the tab. Drop one node at the end of your workflow and ComfyUI will tell you when it's done.

GitHub Sponsors Ko-fi License: GPL-3.0


✨ Nodes Included

| Node | What it does | |------|--------------| | OnCompleteEmailMe | Sends a Gmail when generation finishes. Attaches the last generated image. | | OnCompletePlaySound | Plays a sound notification on completion. | | OnCompleteWebhook | Fires an HTTP webhook so you can integrate with Discord, Slack, n8n, IFTTT, your own server, etc. |


📦 Installation

Option A — ComfyUI Manager (recommended)

  1. Open ComfyUI Manager
  2. Click Install via Git URL
  3. Paste: https://github.com/bobddadoo/comfy-ui-on-complete-email-me
  4. Restart ComfyUI

Install step 1 Install step 2

Option B — Manual

cd ComfyUI/custom_nodes
git clone https://github.com/bobddadoo/comfy-ui-on-complete-email-me

Then restart ComfyUI.


🚀 Usage

OnCompleteEmailMe

Usage step 1

  1. sender_email — your Gmail address.
  2. sender_password — a Gmail App Password (not your account password). Create one at Google App Passwords.
  3. recipient_emails — list of recipients (one per line, separated by Enter).
  4. message — body text for the email.

The last generated image is attached automatically.

Usage step 2

OnCompleteWebhook

  1. Add the OnCompleteWebhook node at the end of your workflow.
  2. Set webhook_url to your endpoint (Discord webhook, Slack incoming webhook, your own server, …).
  3. Run the workflow — the node fires once generation completes.

OnCompletePlaySound

Add the node at the end of your workflow to play a sound when the run finishes.


❓ FAQ

Q. I entered the app password but emails aren't sending.

The error usually looks like:

Failed to send email: 'ascii' codec can't encode character '\xa0' in position 25: ordinal not in range

This means a non-breaking space (\xa0) snuck into the app password when you pasted it. Re-type the app password manually (no copy/paste) or carefully strip the spaces, and try again.


🗓️ Changelog

2025-01-15

  • 📎 Attach the last generated image to the email.
  • 🔊 Added OnCompletePlaySound node.

Image attachment example


💛 Support this project

If these nodes saved you from babysitting renders, consider sponsoring — it directly funds more ComfyUI tooling.

Even a one-time coffee helps. Thanks 🙏


📄 License

Licensed under GPL-3.0. See LICENSE.txt for details.