nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

send mail attachment solaris

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. ...


Go Back   nixCraft Linux Forum > UNIX operating systems > Solaris/OpenSolaris

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-17-2006, 05:02 PM
K.R.
Guest
 
Posts: n/a
Default send mail attachment solaris

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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-01-2007, 07:05 PM
Junior Member
 
Join Date: Feb 2007
Posts: 3
Rep Power: 0
009satya
Default

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)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT +5.5. The time now is 05:38 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36