I am using Unix & wanted to send mail with an attachment, but was not knowing the syntax for mailx command to have file go as an attachment. Can anybody give me the syntax to attach a .txt file...??
PLEASE HELP....!
I am using Unix & wanted to send mail with an attachment, but was not knowing the syntax for mailx command to have file go as an attachment. Can anybody give me the syntax to attach a .txt file...??
PLEASE HELP....!
Here is the sample syntax for it...!!!
uuencode source_file.sh attached_file.txt | mailx -m -r sender@address -s "attachment testing" recipient@address
Currently I am sending two individual emails which is highly inconvenient. commands which I am using :
1. mailx -s "subject" email@address < file
2. uuencode file file.txt | mailx -s "subject" email@address
Bookmarks