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
Revision as of 11:43, 4 October 2023 by Admin (talk | contribs) (Created page with "* 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 <code>email.txt</code> To: someone@example.com From: you@example.com Subject: Sent With Curl This Email was sent with curl!")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • 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!