Custom Smtp Sender
A skill to send emails with support for markdown, HTML.
- Rating
- 4.2 (396 reviews)
- Downloads
- 1,123 downloads
- Version
- 1.0.0
Overview
A skill to send emails with support for markdown, HTML.
✨Key Features
HTML/Markdown support: Compose emails using markdown converted to HTML.
Attachments: Include one or more files easily.
Retries: Attempts to resend in case of temporary failures.
Logging: Maintains a log of sent emails and errors for auditing.
Complete Documentation
View Source →
Custom SMTP Sender
Custom skill to send emails with advanced options including HTML/Markdown conversion, attachments, and retry handling. Integrates existing configuration, ensuring secure and reliable operations.
Features
- HTML/Markdown support: Compose emails using markdown converted to HTML.
- Attachments: Include one or more files easily.
- Retries: Attempts to resend in case of temporary failures.
- Logging: Maintains a log of sent emails and errors for auditing.
Prerequisites
- SMTP Configuration File:
smtp-config.jsonlocated at/home/bb/.openclaw/
{
"server": "smtp.exmail.qq.com",
"port": 465,
"username": "[email protected]",
"password": "your-password",
"emailFrom": "[email protected]",
"useTLS": true
}
Ensure file permissions are secured (chmod 600).
Usage
Send a basic email:custom-smtp-sender send --to "[email protected]" --subject "Hello" --body "你好"
Send an HTML email with an attachment:
custom-smtp-sender send \
--to "[email protected]" \
--subject "Weekly Report" \
--body "**Important updates inside.** See attached." \
--html \
--attachments path/to/file.pdf
Error Handling
The tool retries up to 3 times on failure, logging each attempt. Networking or credential issues are reported in detail.Future Expansion
- Support for CC/BCC fields
- Scheduling emails (cron integration)
- Email templates
Installation
openclaw install custom-smtp-sender
💻Code Examples
Example:
{
"server": "smtp.exmail.qq.com",
"port": 465,
"username": "[email protected]",
"password": "your-password",
"emailFrom": "[email protected]",
"useTLS": true
}Send an HTML email with an attachment:
custom-smtp-sender send \
--to "[email protected]" \
--subject "Weekly Report" \
--body "**Important updates inside.** See attached." \
--html \
--attachments path/to/file.pdfTags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
Adversarial Prompting
Adversarial analysis to critique, fix.