Created
October 25, 2022 18:50
-
-
Save pcdoyle/90a67fe5a26172d322d4402a8fbdebaf to your computer and use it in GitHub Desktop.
Send Email with SMTP using TLS
This file contains 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 --ssl smtps://smtp.example.com:465 --mail-from from@example.com \ | |
--mail-rcpt to@example.com --upload-file email.txt \ | |
--user 'username:password' |
This file contains 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: "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