I am trying to send an email from my Amazon EC2 node using mutt, and I get an error message which I assume is the syntax, but I cannot see what I am doing wrong. I am trying to send an email with txt attachment
echo "Sending Test" | mutt -a test.txt -s "test email" name@emaildomain.com
However, I get the following errors:
Can't stat name@emaildomain.com : No such file or directory name@emaildomain.com : unable to attach file
Obviously, we are trying to attach a file, which is the name of the email, but I do not understand why. Any help would be greatly appreciated.
source share