![]() |
|
|
|
|
|||||||
| 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 email attachments | venush | UNIX for Dummies Questions & Answers | 2 | 06-05-2008 10:42 PM |
| Sending Attachments Through mailx | vrk1219 | HP-UX | 4 | 08-27-2007 08:06 AM |
| sending attachments in mail | rajendragora | UNIX for Dummies Questions & Answers | 6 | 01-31-2007 09:13 PM |
| sending attachments via unix | Abhishek Ghose | UNIX for Advanced & Expert Users | 6 | 09-30-2005 01:49 PM |
| sending files as attachments | SmartJuniorUnix | How do I send email? | 9 | 04-13-2001 04:34 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sending multiple attachments
Hi people, I am new to this forums. I have a quick question I hope one of you could help me with. I am writing a script to send attachments via email. However I am having trouble when trying to send multiple attachments. Here is the code I am using:
Code:
send_mail()
{
uuencode $TMP $TMP1 > $TMP1
uuencode $TMP $TMP3 > $TMP3
cat $MAILGROUP | while read RECIPIENT
do
mailx -s "$BROKER" $RECIPIENT < $TMP1 < $TMP3
STATUS=$?
if [ $STATUS -ne 0 ]
then
exit 1
fi
done
}
Your responses are much appreciated. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I am not at a UNIX box, so try this modification
Quote:
|
|||
| Google The UNIX and Linux Forums |
| Tags |
| mailx, mailx attachment |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|