Install
openclaw skills install smtp-senderA skill to send emails with support for markdown, HTML text, and attachments, leveraging existing SMTP configuration in `{skill~}/smtp-config.json`. Includes retry logic and logging.
openclaw skills install smtp-senderCustom skill to send emails with advanced options including HTML/Markdown conversion, attachments, and retry handling. Integrates existing configuration, ensuring secure and reliable operations.
smtp-config.json located at ~skill/smtp-config.jsonExample:
{
"server": "smtp.exmail.qq.com",
"port": 465,
"username": "your-email@example.com",
"password": "your-password",
"emailFrom": "your-email@example.com",
"useTLS": true
}
Ensure file permissions are secured (chmod 600).
Send a basic email:
python3 ~/.openclaw/workspace/skills/smtp-sender/email_sender.py --to "recipient@example.com" --subject "Hello" --body "你好"
Send an HTML email with an attachment:
python3 ~/.openclaw/workspace/skills/smtp-sender/email_sender.py \
--to "recipient@example.com" \
--subject "Weekly Report" \
--body "**Important updates inside.** See attached." \
--html \
--attachments path/to/file.pdf
The tool retries up to 3 times on failure, logging each attempt. Networking or credential issues are reported in detail.
Set up your SMTP-service once, and you’re ready to integrate email into your workflow!