Skip to content

Instantly share code, notes, and snippets.

@relthyg
Last active December 7, 2015 11:31
Show Gist options
  • Save relthyg/bf1ced6a4b64d91e07cd to your computer and use it in GitHub Desktop.
Save relthyg/bf1ced6a4b64d91e07cd to your computer and use it in GitHub Desktop.
mailx syntax with attachment
#!/bin/bash
echo "MESSAGE BODY" | mailx -s "SUBJECT" -a "FILENAME" -r from@address.net to@address.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment