Hi, I need to send a email as a txt file and i used the commands,
(echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID"
I received email with a attachment with all data but i get all of them in one row.
For example:
If file.txt contains value as below
1
2
3
4
5
I receive them as 1 2 3 4 5. All in one row which i don't want....
I need them as it is.. like
1
2
3
4
5
Can anyone please help me ?
Thanks in advance!