The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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 email from unix (AIX) with PDF attachment sunjup AIX 0 03-14-2008 04:12 PM
send email from unix with attachment chiru_h Shell Programming and Scripting 1 08-13-2007 01:18 PM
UNABLE to send 5MB attachment using mailx tads98 Shell Programming and Scripting 3 09-02-2005 08:15 AM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 10:43 AM
script that will send and email attachment davels Shell Programming and Scripting 2 01-01-2005 05:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-09-2009
cmaroju cmaroju is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 19
unable to send an email attachment

i know its pretty repeated query, but i need to post it in this new thread coz i need it urgently

Code:
uuencode /var/tmp/chandra/emaillist.txt emaillist.txt | mail -s "message with encoded attachment"
am unable to send the attachment emaillist.txt present in the path /var/tmp/chandra/

Is that am doing any mistake anywhere ?

Please enlight me.....


Regards
CS
  #2 (permalink)  
Old 02-09-2009
gehlnar gehlnar is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 47
after subject mail to whom you want to send is missing, try with that.

Cheers,
gehlnar
  #3 (permalink)  
Old 02-09-2009
cmaroju cmaroju is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 19
oops am sorry, i posted a partial code.....

here is my code :

Code:
uuencode /var/tmp/chandra/emaillist.txt emaillist.txt | mail -s "message with encoded attachment" xyz@hostname.com
  #4 (permalink)  
Old 02-09-2009
gehlnar gehlnar is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 47
Try with this

uuencode /var/tmp/chandra/emaillist.txt var/tmp/chandra/emaillist.txt | mail -s "message with encoded attachment" xyz@hostname.com
  #5 (permalink)  
Old 02-09-2009
cmaroju cmaroju is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 19
But still am unable to forward that attachment.....
  #6 (permalink)  
Old 02-09-2009
cmaroju cmaroju is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 19
Thanks for your early replies,,,,,

I tried it, same thing, unable to forward that attachment.....
  #7 (permalink)  
Old 02-09-2009
gehlnar gehlnar is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 47
I guess it is to do something with hostname. are you sure that you was able to send mail like this earlier?

Becoz I do not see anything wrong with command.

Cheers,
gehlnar
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 11:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0