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
How to attach a file in a email ting123 UNIX for Dummies Questions & Answers 3 04-11-2009 06:03 PM
email file tolkki UNIX for Dummies Questions & Answers 2 03-20-2008 10:03 AM
How to email a file list chengwei Shell Programming and Scripting 4 04-18-2007 06:10 AM
zip and email a file spalmarez UNIX for Dummies Questions & Answers 4 05-05-2006 01:31 PM
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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-02-2007
nokia1100 nokia1100 is offline
Banned
  
 

Join Date: Apr 2007
Posts: 21
how to email a file

hi
how can i email a file?

[mmu@cet~]$ mail -b "file - mycar" aoe_syl@yahoo.com
Subject: car
.
Cc:
Null message body; hope that's ok
[mmu@cet~]$ /home/mmu/dead.letter... Saved message in /home/mmu/dead.letter
send
-bash: send: command not found

i tried by above way but failed.
request for help frm all.

thanks
  #2 (permalink)  
Old 04-02-2007
kumarsaravana_s kumarsaravana_s is offline
Registered User
  
 

Join Date: Feb 2007
Location: Bangalore
Posts: 105
Quote:
Originally Posted by nokia1100
hi
how can i email a file?

[mmu@cet~]$ mail -b "file - mycar" aoe_syl@yahoo.com
Subject: car
.
Cc:
Null message body; hope that's ok
[mmu@cet~]$ /home/mmu/dead.letter... Saved message in /home/mmu/dead.letter
send
-bash: send: command not found

i tried by above way but failed.
request for help frm all.

thanks
mailx -s "file - my car" aoe_syl@yahoo.com < /home/mmu/dead.letter Or

uuencode /home/mmu/dead.letter /home/mmu/dead.letter | mailx -s "file - my car" "aoe_syl@yahoo.com "
  #3 (permalink)  
Old 04-02-2007
Dhruva's Avatar
Dhruva Dhruva is offline
Registered User
  
 

Join Date: Mar 2006
Location: India
Posts: 255
mail
check the above link and search the forum there are plenty of it.
  #4 (permalink)  
Old 04-02-2007
nokia1100 nokia1100 is offline
Banned
  
 

Join Date: Apr 2007
Posts: 21
i'v tried with this one.

mailx -s "file - my car" aoe_syl@yahoo.com < /home/mmu/dead.letter

there is no error but i still not get a mail there (aoe_syl@yahoo.com), is it takes time?
  #5 (permalink)  
Old 04-02-2007
nokia1100 nokia1100 is offline
Banned
  
 

Join Date: Apr 2007
Posts: 21
thanks kumarsaravana_s for quick reply.
  #6 (permalink)  
Old 04-02-2007
Dhruva's Avatar
Dhruva Dhruva is offline
Registered User
  
 

Join Date: Mar 2006
Location: India
Posts: 255
Code:
uuencode filename filename | mailx -s "test" abc@xyz.com
will give file in attachment

Code:
mailx -s "test" abc@xyz.com <filename
will give contents of file in mail body.
Sometimes it takes time.
  #7 (permalink)  
Old 04-02-2007
nokia1100 nokia1100 is offline
Banned
  
 

Join Date: Apr 2007
Posts: 21
thanks Dhruva
Closed Thread

Bookmarks

Tags
mailx, mailx attachment

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 02:33 AM.


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