Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Last active April 15, 2022 10:24
Show Gist options
  • Save rohan-molloy/11d849a84663c16b9f72f86809514ae6 to your computer and use it in GitHub Desktop.
Save rohan-molloy/11d849a84663c16b9f72f86809514ae6 to your computer and use it in GitHub Desktop.
How to use cURL to send an email
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