Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Sends emails via a pre-configured SMTP server with support for plain text, Markdown-to-HTML conversion, and file attachments. Uses a local JSON config file for credentials and retries failed sends up to 3 times with error logging.
Reuses a single SMTP config across all scripts instead of hardcoding credentials each time.
When to use it
- Sending weekly reports with PDF attachments
- Automating notification emails from scripts
- Delivering formatted Markdown summaries to teammates
- Triggering email alerts after long-running jobs finish
- Sending files from the command line without a GUI client
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Send a weekly report email with an attached PDF to the team
- 1Reads SMTP credentials from /home/bb/.openclaw/smtp-config.json
- 2Converts Markdown body to HTML
- 3Attaches the specified PDF file
- 4Calls custom-smtp-sender with --to, --subject, --body, --html, and --attachments flags
- 5Retries up to 3 times on failure and logs the result
Email delivered to recipient with formatted HTML body and PDF attachment
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.