Hi
I have input file in solaris machine and my question is..,how to send email that input file to Microsoft outlook 2010 in excel /xls format.
Hi
I have input file in solaris machine and my question is..,how to send email that input file to Microsoft outlook 2010 in excel /xls format.
Use some CSV format. Use the semicolon ';' as field separator,
so MS Excel could open the file .csv directly.
Then use uuencode and mailx to send the file as an attachment:
uuencode <filename> <filename> | mailx -s 'your subject' mail@address ...
Thanks for reply i tried what you posted here but after running the syntax it took longer time and if i enter ctrl+c i got below output and also got email with just subject with out attachment.
please see below input and output
Input: bash-3.2$ uuencode /users/input.txt | mailx -s test xxx@exa.com
^C
(Interrupt -- one more to kill letter)
radoulov clearly mentioned to pass file name twice to uuencode
also use -m
option with mailx
uuencode /users/input.txt input.txt | mailx -m -s test xxx@exa.com
You need to put the filename twice (the second one is the name of the email attachment), eg:
uuencode /users/input.txt input.txt | mailx -s test xxx@exa.com
Great it worked and Thanks so much.New to this forums and am so impressed with replies.