This skill allows the agent to send emails using a standard SMTP server (like Gmail, Outlook, etc.).
The skill uses the following environment variables for configuration:
SMTP_SERVER: (e.g., smtp.gmail.com)SMTP_PORT: (e.g., 587)SMTP_USER: Your email addressSMTP_PASS: Your app-specific passwordFROM_EMAIL: The sender's email (optional, defaults to SMTP_USER)To send an email, use the bundled script:
python3 skills/public/mail-sender/scripts/send.py \
--to-email "recipient@example.com" \
--subject "Hello from OpenClaw" \
--body "This is a test email sent via the mail-sender skill."
For Gmail, use an App Password instead of your primary account password. Never hardcode credentials in the script or conversation history.
共 1 个版本