ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

lel-mail

Send and read email via a combination of python and bash scripts which makes use of the main agent for reasoning and logic

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/leli1024/lel-mail
Or

Lel Mail

Important Note If Running On the Cloud/VPS

  • Some cloud providers explicitly disable email leading to failiure of these scripts, services like tailscale will be needed to bypass these blocks

Setup

Setting up the Config File

Create ~/.config/lel-mail/config.json:

[
  {
    "provider": "gmail",
    "config": {
        "smtp": {
        "server": "smtp.gmail.com", //Default url
        "port": 587 //Default port
      },
      "imap": {
        "server": "imap.gmail.com", //Default url
        "port": 993 //Default port
      }
    },
    "auth": {
      "user": "[email protected]",
      "password": "XXXX XXXX XXXX XXXX" //Gmail Requires App Specific Password Rather Than Your Normal Password
    },
    "can_send": true,
    "can_read": true
  }
]

Setting up cron job

Set up a simple cron job which runs the following command every 5 minutes with a randomised 30-90 second delay. Confirm with user the interval to be used: ~/.openclaw/workspace/skills/lel-mail/scripts/email_sender_daemon.sh

Quick Reference

Read Email

  1. Make sure config exists, if not create it with input of user
  2. Reference USERS.md (or whatever USER reference file your system uses) to see what email(s) you need to check unless user explicitly defines the email(s)
  3. Run the following command ~/.openclaw/workspace/skills/lel-mail/scripts/check_email.sh <USER_EMAIL>

Send Email

Note, this script does not send the data directly but sends it to a scheduler which will automatically send it in approximately 5.5 minutes

  1. Make sure you have the necessary data to send the email from the user, that includes sender, recipient and body, everything else is optional
  2. Run the following command ~/.openclaw/workspace/skills/lel-mail/scripts/email_send.sh --sender <sender> --recipient <recipient> --subject <subject> --body <body> [--cc ...] [--bcc ...] Note: if using BCC/CC note that CC/BCC are comma-separated lists

Troubleshooting

Prompt user to assist when errors occur due to missing/invalid credentials/configuration

  • If emails aren't sending at all check that a cron job for the daemon is running

Metadata

Author@leli1024
Stars1656
Views2
Updated2026-02-28
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-leli1024-lel-mail": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.