by caopulan
您需要知道 AI 助手何时完成重要任务。此技能会将包含设备名称、项目名称、状态和结果摘要的邮件通知直接发送到您的收件箱。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 email-notify 技能" 开始使用
=== email-notify 技能 === 作者: caopulan 描述: 您需要知道 AI 助手何时完成重要任务。此技能会将包含设备名称、项目名称、状态和结果摘要的邮件通知直接发送到您的收件箱。 使用方法: 1. 调用技能: "使用 email-notify 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 email-notify 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
low
Send an email notification after each Codex task. Use the helper script to resolve the project name and send via SMTP.
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="user@example.com"
export CODEX_EMAIL_PASSWORD="..."
export CODEX_EMAIL_FROM="user@example.com"
export CODEX_EMAIL_TO="recipient1@example.com,recipient2@example.com"
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.
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.
AGENTS.md using one of:
project_name: My Project (or name:)Project Name: My Projectsuccess, failed, partial, blocked, etc.Run:
python3 ~/.codex/skills/email-notify/scripts/send_email_notification.py \
--task-title "..." \
--status "success" \
--summary "..." \
--project-name "..."
scripts/send_email_notification.py: Send the email notification and resolve the project name.View Count
0
Download Count
0
Favorite Count
0
Quality Score
70