Writing a shell script which will auto send email to user with multiple attachments. Mail format include Sender, Reeceiver, Subject , Body text etc. Any body know the way? using sendmail or elm?
Thanks Carlos Almeida,
That'll will give me a encode format. I need send attachments as it is, ie need not to decode. I realise the following command will to that :
uuencode file file | sendmail xxxx@XXX.com
But how to change the From:, Subject: and insert in the boby messages? and the way to send multiple files as one go.
You can write a "script" to format attachments to be MIME compliant and then use "sendmail" so you don't need to decode them, if you want you can check a shell script already done at:
Hi Sachin,
Thanks. it work, but i need to change the From field , likely to have ability to write some body text.
I tried out Carlos Almeida's way, it work fine with a single attachment. Two attachments and more will results in some attachment appear in encoded format.
Carlos Almeida, do u know why?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.