• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4855
  • Last Modified:

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
0
vage78
Asked:
vage78
  • 3
  • 2
1 Solution
 
vage78Author Commented:
ok Thank you
0
 
YesurbiusCommented:
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
0
 
vage78Author Commented:
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?

0
 
YesurbiusCommented:
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 http://docs.sun.com/db/doc/806-7612/6jgfmsvqp

Have you tried using this syntax:

uuencode /tmp/myfile.tar.gz | mail someone@abc.com

?
0
 
vage78Author Commented:
ok thank you
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now