Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX Native Mail and attachments

Status
Not open for further replies.

ytakbob

Programmer
Jul 20, 2000
105
US
IS there any way to include an attachment along with a message sent from AIX mail. I am aware of ability to pipe a file contents into the body of the message and also using the ~r to read in a file.
 
Try this from the prompt:

$ mailx -s subject touser@domain.com < file.ur.sending

that should send your mailfile to the intended recipient. Hope it helps.
 
Also try:
$ uuencode original_file_name file_name_of_attachment | mail user@domain.com

e.g. I want to send a file from a Unix box to a windows box which can understand file extenstions. The .txt will allow my mail reader to associate the file with my default text reader
$ uuencode logs logs.txt | mail user@domain.com
 
hi Riaan

I tried this, but it seems uuencode file is not available. Is there any other way to mail attachments using mail, mailx

thanks
raj
 
Check that the bos.net.uucp fileset exists as per below,

# lslpp -l bos.net.uucp
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.net.uucp 4.3.3.10 COMMITTED Unix to Unix Copy Program

Path: /etc/objrepos
bos.net.uucp 4.3.3.0 COMMITTED Unix to Unix Copy Program


Once installed uuencode/uudecode should work fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top