跳到正文
TakoAPI
返回技能列表

gmail-sender

由 junkaixue 提供

CLI Utilities
316下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Send emails via Gmail SMTP using Google App Password.

描述

该技能的功能

Sends emails via Gmail SMTP using a Google App Password. Runs as a CLI command with no external Python dependencies. Useful for alerts, scheduled reports, and automated notifications.

Uses Python's standard library only, so there are no packages to install or manage.

何时使用

  • Sending server CPU/memory alerts to an admin
  • Scheduling morning status report emails via cron
  • Notifying a team when a build or script completes
  • Triggering email alerts from a monitoring script
  • Sending automated daily summaries from a data pipeline

示例工作流

输入

User asks: send a server alert email to admin@example.com saying CPU is at 90%

智能体
  1. 1

    Reads GMAIL_USER and GMAIL_APP_PASSWORD from environment variables

  2. 2

    Constructs the SMTP connection to smtp.gmail.com on port 587

  3. 3

    Authenticates using the App Password

  4. 4

    Sends the email with the specified recipient, subject, and body

输出

Email delivered to admin@example.com with subject 'Server Alert' and body 'CPU usage at 90%'

前置要求

  • GMAIL_USER environment variable (your Gmail address)
  • GMAIL_APP_PASSWORD environment variable (16-character Google App Password)
  • Gmail account with 2-Factor Authentication enabled

安装

clawhub install junkaixue/gmail-sender

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接