How to get 2 records in 2 separate lines in the mail

export VarMailAddress=abc@gmail.com
export SUBJECT="Hi"
(
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo "Content-Disposition: inline"
echo "<HTML><BODY>"
echo "<B> <U>NAME��ID��Address </B> <br /> "
echo "`cat FILE`"
echo "</BODY></HTML>"
) | /usr/sbin/sendmail $VarMailAddress

Here FILE contains:
abc 43 ghju
iop 56 hjmgkl

but in the mail, above two records are coming in a single line like:
abc 43 ghju iop 56 hjmgkl

My requirement is to get 2 records in separate lines.

can anybody help me in this ASAP

Thanks in advance.

Remove the echo from around the cat.

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

*****************************************************

Try to remove the echo of that line and also remove the backticks around the cat.

Hi

I tried that option.Even though i am getting the 2 records in single line while sending an email

can anybody help in this?

Thanks in advance

Please edit your post as I asked for and add the code tags.

Just tested it on my Debian Linux box:

(echo eins; cat infile; echo zwei)| mail -s test zaxxon@somedomain.de

Output in my mailer:

eins
bababa nobody bababa
tftp          dgram   udp      wait    nobody  /usr/sbin/tcpd  in.tftpd  /tftpboott
lalala nobody lalala
zwei