Skip to content

Instantly share code, notes, and snippets.

@herpiko
Created August 29, 2017 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herpiko/98c8ba59640466102cd0596149b820e0 to your computer and use it in GitHub Desktop.
Save herpiko/98c8ba59640466102cd0596149b820e0 to your computer and use it in GitHub Desktop.
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