Skip to content

Instantly share code, notes, and snippets.

@psaitu
Created August 17, 2016 11:45
Show Gist options
  • Select an option

  • Save psaitu/dc13d59955c427997d3e9d6e781e7e69 to your computer and use it in GitHub Desktop.

Select an option

Save psaitu/dc13d59955c427997d3e9d6e781e7e69 to your computer and use it in GitHub Desktop.
Curl 101
From: "User Name" <username@gmail.com>
To: "John Smith" <john@example.com>
Subject: This is a test
Hi John,
I'm sending this mail with curl thru my gmail account.
Bye!
curl --url "smtps://smtp.gmail.com:465" --ssl-reqd \
--mail-from "username@gmail.com" --mail-rcpt "john@example.com" \
--upload-file mail.txt --user "username@gmail.com:password" --insecure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment