Problem : attach multiple files to mailx

Problem : attach multiple files to mailx

Hi all,
by doing this:
#!/bin/sh
mailx -s testing `cat emaillist.txt`

I am able to attach the file text.txt and send it to multiple recipients in email.txt but I want to know how I can attach multiple files to the email message.

Thanks in advance.


 

Solution: attach multiple files to mailx

I dont think mailx can be used to send attachments. although you can concatenate text of 2 or more files as the message body….

cat text1.txt text2.txt | mailx -s testing `cat emaillist.txt`