Results 1 to 1 of 1
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" myemailaddress;
But if ...
- 12-26-2011 #1Just Joined!
- Join Date
- Dec 2011
- Posts
- 3
Problem with 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" myemailaddress;
But if I put like this:
$f is name of file which I am reading
var=`cat $f`
echo "$var" | mailx -s "Test" myemailaddress;
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%>Here is written From<>
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


Reply With Quote