Home » Infrastructure » Unix » How to mail two files as an attachment.
How to mail two files as an attachment. [message #98518] Sat, 11 December 2004 23:58 Go to next message
santosh
Messages: 85
Registered: October 2000
Member
My requirement is to mail two files as an attachment to user by mail.
There is facility of mailx command in unix to send one file as an attachment.
Can anyone give me the command or script in unix to do so?

Regards,
Santosh
Re: How to mail two files as an attachment. [message #98519 is a reply to message #98518] Mon, 13 December 2004 07:10 Go to previous messageGo to next message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
http://www.orafaq.com/scripts/index.htm#UNIX

See 24 and 25

Be sure to send to different clients(e.g. Yahoo and Outlook). Attachments aren't always handled the same...
Re: How to mail two files as an attachment. [message #109607 is a reply to message #98518] Sat, 26 February 2005 23:17 Go to previous message
SteppinRazor
Messages: 1
Registered: February 2005
Junior Member
Hi Santosh..,

This works for me on both Sun Solaris and HP-UX:

uuencode path/file file | mailx -s"subject" -r reply-address recipient-address

Cya..,

SteppinRazor
Previous Topic: Re: urgent : problem in exporting variables
Next Topic: SQL in Unix/Linux Platform
Goto Forum:
  


Current Time: Fri Apr 19 00:32:55 CDT 2024