-
-
Save nhthai2005/11b5fe8a0a7e306fcaf78a7fd77c6852 to your computer and use it in GitHub Desktop.
Send SMTP email using cURL
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 --connect-timeout 15 -v --insecure "smtp://smtp.example.com:25" -u "username:password" \ | |
--mail-from "sender@example.com" --mail-rcpt "destination@example.com" \ | |
-T email-contents.txt --ssl |
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: "Sender Name" <sender@example.com> | |
To: "Destination Email" <destination@example.com> | |
Subject: Sending Using Curl | |
Hello, | |
I'm sending this mail with curl. | |
Bye! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment