scorpiox-email communication

Linux x64 Linux ARM64 macOS ARM64 Windows x64

Description

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.

⚙️ Flags & Options (6)

Flag Short Description Takes Value
--to-tRecipient email addressYes
--subject-sEmail subject lineYes
--body-bInline email body textYes
--file-fPath to file attachment or body sourceYes
--content-cContent type (e.g. text/plain, text/html)Yes
--verbose-vEnable verbose SMTP session loggingNo

Usage Examples

Send a simple text email
# Send a plain text email to a recipient
scorpiox-email --to user@example.com --subject "Hello" --body "Hi there, this is a test."
Send with short flags
# Same thing using shorthand flags
scorpiox-email -t user@example.com -s "Meeting reminder" -b "Don't forget: standup at 9am."
Send an HTML email
# 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"
Send body from a file
# Use a file as the email body source
scorpiox-email -t team@company.com -s "Deploy log" -f /var/log/deploy.log
Send HTML report from file
# 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
Verbose mode for debugging SMTP
# 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...
Use in a shell script
#!/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

Source & Build Info

Source File
scorpiox/scorpiox-email.c
Lines of Code
737
Dependencies
libcurl, libsxutil

Related Tools in Communication