(if you're running Solaris), but can also be found for just about any other *NIX.
Another solution could be to use the uuencode utility to "encode" your attachment as text and send it as the body of your message. The person at the receiving end of the message would have to uudecode or something similiar in order to use the file.
another alternative is too look for 'mpack' and 'munpack' on the web ... i downloaded them and compiled them in no time ... they worked well for me ...
i think installing PINE might do you some good it's plain and simple when you want to put attachments you just hut CTRL + J and then put the path to where your attachment is and press Enter pretty simple and painless !!
I posted a solution on how to do this a few weeks ago. You should look through the "search" on this site for "mailx" & "attachments" You can use a program called Dave Wotton script at
you probably want a loop around EMAIL_TEXT, allowing it to stop inputting on a '.' or something, same as other mailers, possibly also want to allow more than one attachment.
I have posted 2 scripts in the FAQ of this forum, with some minor changes you can change it to suit your requirements. IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
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.