Skip to content

Instantly share code, notes, and snippets.

@pcdoyle
Created October 25, 2022 18:50
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 pcdoyle/90a67fe5a26172d322d4402a8fbdebaf to your computer and use it in GitHub Desktop.
Save pcdoyle/90a67fe5a26172d322d4402a8fbdebaf to your computer and use it in GitHub Desktop.
Send Email with SMTP using TLS
curl --ssl smtps://smtp.example.com:465 --mail-from from@example.com \
--mail-rcpt to@example.com --upload-file email.txt \
--user 'username:password'
From: "Origin Email" <from@example.com>
To: "Destination Email" <to@example.com>
Subject: Subject Here
Body of the email here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment