A fast, lightweight SMTP email client written in C. Supports TLS encryption for secure delivery, inline body text or file-based content, and verbose diagnostics. Built on libcurl for robust SMTP/SMTPS transport and libsxutil for ScorpioX ecosystem integration.
| Flag | Short | Description | Takes Value |
|---|---|---|---|
| --to | -t | Recipient email address | Yes |
| --subject | -s | Email subject line | Yes |
| --body | -b | Inline email body text | Yes |
| --file | -f | Path to file attachment or body source | Yes |
| --content | -c | Content type (e.g. text/plain, text/html) | Yes |
| --verbose | -v | Enable verbose SMTP session logging | No |
# Send a plain text email to a recipient
scorpiox-email --to user@example.com --subject "Hello" --body "Hi there, this is a test."# Same thing using shorthand flags
scorpiox-email -t user@example.com -s "Meeting reminder" -b "Don't forget: standup at 9am."# Send HTML content by specifying content type
scorpiox-email -t user@example.com -s "Weekly Report" \
-b "<h1>Report</h1><p>All systems operational.</p>" \
-c "text/html"# Use a file as the email body source
scorpiox-email -t team@company.com -s "Deploy log" -f /var/log/deploy.log# Send an HTML report file with verbose output
scorpiox-email -t admin@example.com -s "CI Report" \
-f /tmp/report.html -c "text/html" --verbose# Debug SMTP connection issues with verbose logging scorpiox-email -t test@example.com -s "Test" -b "debug" -v # Output shows TLS handshake, AUTH, MAIL FROM, RCPT TO, DATA...
#!/bin/bash
# Alert on disk usage > 90%
USAGE=$(df / | awk 'NR==2 {print $5}' | tr -d '%')
if [ "$USAGE" -gt 90 ]; then
scorpiox-email -t ops@company.com \
-s "⚠️ Disk alert: ${USAGE}% used" \
-b "Server $(hostname) disk at ${USAGE}%. Action needed."
fi