/install email-notify
Email Notify
Overview
Send an email notification after each Codex task. Use the helper script to resolve the project name and send via SMTP.
User Preparation
1) Configure environment variables
Add the following lines to ~/.bashrc (Linux) or ~/.zshrc (macOS):
export CODEX_MACHINE_NAME="Machine-name" # e.g., Macbook
export CODEX_EMAIL_SMTP_HOST="smtp.example.com"
export CODEX_EMAIL_SMTP_PORT="587"
export CODEX_EMAIL_USERNAME="[email protected]"
export CODEX_EMAIL_PASSWORD="..."
export CODEX_EMAIL_FROM="[email protected]"
export CODEX_EMAIL_TO="[email protected],[email protected]"
export CODEX_EMAIL_USE_TLS="false" # true/false, default false
export CODEX_EMAIL_USE_SSL="true" # true/false, default true
If your SMTP server does not require auth, leave CODEX_EMAIL_USERNAME and CODEX_EMAIL_PASSWORD unset.
Set CODEX_EMAIL_USE_SSL to true for SMTPS (typically port 465) and CODEX_EMAIL_USE_TLS to true for STARTTLS.
Do not set both CODEX_EMAIL_USE_TLS and CODEX_EMAIL_USE_SSL to true.
2) Add instruction in project AGENTS.md
For example, add this instruction to AGENTS.md:
Use skill email-notify to notify users when each agent run is finished or when any notifications would be sent to users.
Workflow
1) Provide a project name source (optional)
- To override the folder name, define a project name in
AGENTS.mdusing one of:- YAML frontmatter:
project_name: My Project(orname:) - A plain line:
Project Name: My Project
- YAML frontmatter:
- If no name is found, the script uses the project folder name.
2) Send the notification at task completion
- Generate a short task title (3-8 words).
- Pick an execution status:
success,failed,partial,blocked, etc. - Write a brief result summary; avoid secrets.
Run:
python3 ~/.codex/skills/email-notify/scripts/send_email_notification.py \
--task-title "..." \
--status "success" \
--summary "..." \
--project-name "..."
Resources
scripts/send_email_notification.py: Send the email notification and resolve the project name.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install email-notify - 安装完成后,直接呼叫该 Skill 的名称或使用
/email-notify触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Email Notify 是什么?
Send SMTP email notifications after Codex completes a task. Use when one Codex or Claude run is finished, or when you need to notify on task completion with... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 50 次。
如何安装 Email Notify?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install email-notify」即可一键安装,无需额外配置。
Email Notify 是免费的吗?
是的,Email Notify 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Email Notify 支持哪些平台?
Email Notify 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Email Notify?
由 caopulan(@caopulan)开发并维护,当前版本 v1.0.0。