![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| send mail attachment to lotus notes | gwrmk | Shell Programming and Scripting | 2 | 04-24-2008 07:49 AM |
| Command line/Script to send E-mail with HTML body and binary attachment | G-Man | AIX | 3 | 04-18-2007 10:30 PM |
| Send an attachment and html text both in the same mail | stefan.yu | Shell Programming and Scripting | 4 | 10-26-2006 10:46 PM |
| How to send a mail with an attachment from AIX 5.2 OS? | mintu41 | AIX | 1 | 01-30-2006 12:02 PM |
| Send Mail with attachment and a body | manojram | How do I send email? | 4 | 04-26-2004 12:53 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script needed which will send a mail with attachment files
Hello,
I need a shell script which need to send a mail with 4 *.csv files as attachments.Anybody can help me? At present i have a script which is sending only one file as attachments.But i need a script which send 4 files in a shot. #!/bin/ksh /bin/mail xxxx@xx.xom << EOF Subject: Test To: "xxxx@xx.xom" MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="MY_LONG_BOUNDARY_LINE" --MY_LONG_BOUNDARY_LINE `/usr/bin/cat mail_body.txt` --MY_LONG_BOUNDARY_LINE Content-Type: text/plain; charset=us-ascii; NAME=zzz.csv; Content-transfer-encoding: x-uuencode `/usr/bin/uuencode /fullpath/zz.csv zz.csv` --MY_LONG_BOUNDARY_LINE-- EOF Any help will be appreciated. Thanks K |
| Bookmarks |
| Tags |
| mailx, mailx attachment |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|