1831333 Members
3128 Online
110024 Solutions
New Discussion

elm formatting

 
SOLVED
Go to solution
gary phipps
Frequent Advisor

elm formatting

Hi all,

I'm trying to send a text file using elm but my blank lines are being removed. How can I stop this?

Does anyone know of a decent elm tutorial anywhere?

Thanks in advance,

Gary.
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: elm formatting

cat filename | uuencode | elm -s "mailed file" whoever@whereever.com
Live Free or Die
harry d brown jr
Honored Contributor
Solution

Re: elm formatting

or better yet (for multiple files):

for i in `echo filename1 filename2 filename3 ...`
do
uuencode $i $i.txt
done|mailx -m -s "test" username@whereever.com

live free or die
harry
Live Free or Die
gary phipps
Frequent Advisor

Re: elm formatting

Harry,

the first one didn't work, still took out the blank lines. The second one worked but sent the mail as an attachment whereas I wanted the file to make up the body of the email, so I just did 'mailx -s "subject" user@company < file'.

Thanks,

Gary.