Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

gmail-sender

bởi junkaixue

CLI Utilities
316Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Send emails via Gmail SMTP using Google App Password.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Yêu cầu

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

Cài đặt

clawhub install junkaixue/gmail-sender

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết