How can I send a file via mailx (solaris)

I want to send a file via mailx.
I want to send to a receiver who has an Outlook express client.
How can I do it
Who is Participating?
YesurbiusConnect With a Mentor Commented:
I am not sure I understand what you mean by the mail has come in a single row.

For information on mailx usage, you can type 'man mailx' or visit Sun's site

Have you tried using this syntax:

uuencode /tmp/myfile.tar.gz | mail

vage78Author Commented:
ok Thank you
Have you tried:

uuencode file.dat < file.dat | mailx

This runs uuencode which converts an 8 bit file into 7 bit text, and takes file.dat as the input file.  Then it takes the result of that, and pipes it through to the mailx command which is sending to
vage78Author Commented:
It works but  it has come all the mail in a single row.
How can I make it to arrive as it is the original file?

What is the syntax for sending a file via mailx?

vage78Author Commented:
ok thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.