/install lel-mail
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
- Make sure config exists, if not create it with input of user
- 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)
- Run the following command
~/.openclaw/workspace/skills/lel-mail/scripts/check_email.sh \x3CUSER_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
- Make sure you have the necessary data to send the email from the user, that includes sender, recipient and body, everything else is optional
- Run the following command
~/.openclaw/workspace/skills/lel-mail/scripts/email_send.sh --sender \x3Csender> --recipient \x3Crecipient> --subject \x3Csubject> --body \x3Cbody> [--cc ...] [--bcc ...]Note: if using BCC/CC note that CC/BCC are comma-separated lists
3. Manage Outgoing Queue
Outgoing emails are scheduled to send with a random delay (30-90 seconds). You can list or delete these before they are sent.
List all queued emails:
python3 ~/.openclaw/workspace/skills/lel-mail/scripts/manage_queue.py --list
Delete a specific email by ID:
python3 ~/.openclaw/workspace/skills/lel-mail/scripts/manage_queue.py --delete \x3CID>
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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lel-mail - 安装完成后,直接呼叫该 Skill 的名称或使用
/lel-mail触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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. This skill enables the agent to w... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 813 次。
如何安装 Lel Mail?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lel-mail」即可一键安装,无需额外配置。
Lel Mail 是免费的吗?
是的,Lel Mail 完全免费(开源免费),可自由下载、安装和使用。
Lel Mail 支持哪些平台?
Lel Mail 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lel Mail?
由 Leli1024(@leli1024)开发并维护,当前版本 v1.1.4。