Hi ,
Need help of Email Format
I have TEST .txt file which contains below data
/home/a.DAT File Not received
/home/a.CTL File Not received
/home/b.DAT File Not received
/home/b.CTL File Not received
i am using below command to send mail
mail -s "ERROR: files" $MAIL_LIST < $MAIL_FILE
i am able to get mail in below format with side by side , i need mail as which is above format
/home/a.DAT File Not received /home/a.CTLFile Not received /home/b.DAT File Not received /home/b.CTL File Not received
Aia
August 7, 2015, 4:13pm
2
Does this make a difference?
sed 's/$/\r/' $MAIL_FILE | mail -s "ERROR: files" $MAIL_LIST
Thanks for the reply... i am stilling receiving mail as side by side
RudiC
August 8, 2015, 7:24am
4
Should work on *nix mail clients. What client are you using?
If outlook, click the "restore line-breaks" link when viewing the message.
If outlook, often the only way you can get text to actually appear as it was sent is to wrap in html <pre> tags or make it a txt file attachment.
joeyg
August 10, 2015, 11:35am
7
Just to clarify, by 'side by side' are you trying to say that the four lines are combined into one without CR/LF (carriage return and line feed) characters?
This may make it easier to understand your problem.