Link to home
Start Free TrialLog in
Avatar of vage78
vage78Flag for Greece

asked on

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
Avatar of vage78
vage78
Flag of Greece image

ASKER

ok Thank you
Avatar of Yesurbius
Yesurbius

Have you tried:

uuencode file.dat < file.dat | mailx user@host.domain.com

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 user@host.domain.com
Avatar of vage78

ASKER

ok
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?

ASKER CERTIFIED SOLUTION
Avatar of Yesurbius
Yesurbius

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vage78

ASKER

ok thank you