Problem wirh mailx
Hi,
I am trying to send mail from script. When I use this command evyrthing works great echo "This is a test message" | mailx -s "Test" me@domain.net; But if I put like this: $f is name of file which I am reading var=`cat $f` echo "$var" | mailx -s "Test" me@domain.net; it is sending email but without message(without body). I only have subject. If I do echo "$var" I am getting content of file normaly. If I put "$var" in subject I am getting mail, in subject there is one line of file content and in message body I am getting other line and this text Message-ID: <4ef89fd0.IBaQ8Nx7ioCRAdjo%info@apif.net> User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Does anyone know what can be problem. Thank's |
You could try:
Code:
The second will attach the file it will not be processed. |
All times are GMT -5. The time now is 07:48 AM. |