None of the mutt ones worked for me. It was thinking the email address was part of the attachemnt. Had to do:
echo "This is the message body" | mutt -a "/path/to/file.to.attach" -s "subject of message" -- [email protected]
More Related Contents:
- Using curl to send email
- How to change the output color of echo in Linux
- How can I search for a multiline pattern in a file?
- Peak memory usage of a linux/unix process [closed]
- Find and replace with sed in directory and sub directories
- How to find out line-endings in a text file?
- Uninstall Node.JS using Linux command line?
- How do I use the lines of a file as arguments of a command?
- Get most recent file in a directory on Linux
- Linux command to print directory structure in the form of a tree
- How to count lines in a document? [closed]
- How to create a file with a given size in Linux?
- Perl command line multi-line replace
- GROUP BY/SUM from shell
- Linux command to list all available commands and aliases
- How to recursively download a folder via FTP on Linux [closed]
- How to reset Jenkins security settings from the command line?
- extracting unique values between 2 sets/files
- Is there a way to get gcc to output raw binary?
- Execute command after every command in bash
- How can I remove the BOM from a UTF-8 file? [duplicate]
- How do you filter out all unique lines in a file?
- View tabular file such as CSV from command line [closed]
- How can I use xargs to copy files that have spaces and quotes in their names?
- send mail from linux terminal in one line [closed]
- How can I get the resolution (width and height) for a video file from a linux command line?
- How to attach a file using mail command on Linux? [duplicate]
- Why no output is shown when using grep twice?
- Find all files with name containing string [closed]
- Search and replace with sed when dots and underscores are present