Installation
SKILL.md
Send emails via command line.
Using sendmail/msmtp
- Send email:
echo "Body" | sendmail recipient@example.com - With subject:
echo -e "Subject: Hello\n\nBody text" | sendmail -t recipient@example.com
Using SMTP with curl
curl --url "smtps://${SMTP_HOST}:${SMTP_PORT}" \
--mail-from "sender@example.com" \
--mail-rcpt "recipient@example.com" \
--user "${SMTP_USER}:${SMTP_PASS}" \
--upload-file email.txt