Iemail Send
Send transactional single email via Dmartech/Iemail OpenAPI using Python.
Configuration
Configure in ~/.openclaw/openclaw.json:
"skills": {
"entries": {
"iemail-send": {
"enabled": true,
"env": {
"IEMAIL_ACCESS_KEY": "your-access-key",
"IEMAIL_ACCESS_KEY_SECRET": "your-access-key-secret",
"IEMAIL_SENDER": "your-sender@example.com"
}
}
}
}
| Variable | Description |
|---|---|
| IEMAIL_ACCESS_KEY | OpenAPI access key |
| IEMAIL_ACCESS_KEY_SECRET | OpenAPI access key secret |
| IEMAIL_SENDER | Sender email address (required) |
| IEMAIL_TO | Default recipient (optional) |
Agent instructions
- Credentials: Read
~/.openclaw/openclaw.jsonor workspace config files. OpenClaw injects env at runtime. - Send mail: Run script in workspace:
python3 {baseDir}/send_email.py --to "recipient@example.com" --subject "Subject" --content "Body"
Usage examples
python3 {baseDir}/send_email.py --to "recipient@example.com" --subject "Hello" --content "Hello from Iemail"
python3 {baseDir}/send_email.py "recipient@example.com" "Hello" "Hello from Iemail"
Troubleshooting
- 401 Unauthorized: Check IP whitelist, key/secret, and system time.
- cannot find senderAddressSn: Check
IEMAIL_SENDERmatches a configured sender address.