-
-
Save nhthai2005/6a8f95dcb5c67ecc7a9c923c9b474c41 to your computer and use it in GitHub Desktop.
How to use cURL to send an email
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 \ | |
--silent \ | |
--ssl smtp://$SERVER \ | |
--mail-from $FROM \ | |
--mail-rcpt $TO \ | |
--upload-file /dev/stdin \ | |
--user $USER:$PASSWORD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment