![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending Attachments Through mailx | vrk1219 | HP-UX | 4 | 08-27-2007 08:06 AM |
| sendmail attachments | rbatte1 | UNIX for Dummies Questions & Answers | 3 | 06-22-2007 06:14 AM |
| Problem with multiple excel attachments using mailx | ramanam2004 | UNIX for Advanced & Expert Users | 2 | 05-03-2006 10:07 PM |
| mailx error message : mailx: NUL changed to @ | BG_JrAdmin | UNIX for Dummies Questions & Answers | 2 | 12-01-2005 07:27 AM |
| Aix Unix Mailx Attachments | darioa | AIX | 2 | 10-10-2005 04:53 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ksh : using mailx and attachments
Hi
I want to use mailx command to send a message included more than one file. I tried to use uuencode in pipe but it could only generate one file. I would avoid using an archive file Thanks to read you. Mathieu |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Try...
Code:
( echo "message" uuencode /path/to/file1 file1 uuencode /path/to/file2 file2 : etc ) | mailx -s "subject" abc@xyz.com |
|
#3
|
|||
|
|||
|
Thanks a lot Igor
I toke your idea to write my solution You could find it bellow : SUBJECT=$1 BODY=$2 RECIPIENT=$3 FILE=$4 #Files to attach (like /tmp/myfiles_*.txt) (cat $BODY for i in `ls -1 $FILE` do file_name=`basename $i` uuencode $i $file_name done ) | mailx -s "$SUBJECT" $RECIPIENT Regards Mathieu |
|||
| Google The UNIX and Linux Forums |