I was wondering what the command was to send a file that I saved in my /tmp/ directory to an email address as an attachment. I tried using this mail -s "rkhunter debug" -a /tmp/rkhunter-debug.GZqGg25243 firstname.lastname@example.org
I recieved this response and I'm not sure which option is the right one to use as none of the recommended ones worked either.
mail: invalid option -- a
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
[-- sendmail-options ...]
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]
Thanks in advance.