Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Sending an Email with Curl

From John's Wiki
  • Curl Command:
curl -k smtps://mail.example.com \
    --user "username:password" -v \
    --login-options AUTH=PLAIN \
    --mail-from you@example.com \
    --mail-rcpt someone@example.com \
    --upload-file /full/path/to/email.txt
  • Example email.txt
To: someone@example.com
From: you@example.com
Subject: Sent With Curl

This Email was sent with curl!