Last active
April 15, 2022 10:24
-
-
Save rohan-molloy/11d849a84663c16b9f72f86809514ae6 to your computer and use it in GitHub Desktop.
How to use cURL to send an email
This file contains hidden or 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