This is a discussion on send mail attachment solaris within the Solaris/OpenSolaris forums, part of the UNIX operating systems category; I have shell scripts that sends out "email" using the mail command. I can send regular mail without any problems. ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
I have shell scripts that sends out "email" using the mail command. I can send regular mail without any problems. Nevertheless, I could not figure out how can I send
the email with an attachment. Any suggestions? thanks K. R. |
| Sponsored Links | ||
|
|
|
|||
|
uuencode <filename.txt> <filename.txt> | mail -s "Hello this is mine subject" 009satya@gmail.com
OR If you need to send the text along with then ( cat textfile; uuencode <filename.txt> <filename.txt> ) | mail -s "Hello this is my subject" 009satya@gmail.com Note: (1) 'filename.txt' is an attachment file. (2) 'textfile' contains the mail contents ( if require) |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to send mail body with multiple attachments | amankhurana | Shell scripting | 1 | 04-07-2008 01:44 AM |
| Script to monitor a particular directory and send out e-mail.... | nageshms | Shell scripting | 1 | 02-11-2008 02:01 PM |
| Evolution unable to send mail | satimis | Mail Servers | 0 | 01-20-2008 11:28 AM |
| shell script to send mail for each login. | ephdia | Shell scripting | 2 | 11-27-2007 04:42 PM |
| send mail installation and configuration | jhn_daz@yahoo.com | Mail Servers | 1 | 11-01-2007 09:37 AM |