Created
August 17, 2016 11:45
-
-
Save psaitu/dc13d59955c427997d3e9d6e781e7e69 to your computer and use it in GitHub Desktop.
Curl 101
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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