The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Send email with attachement-Getting connection refused by domain samuelc UNIX for Dummies Questions & Answers 1 02-08-2008 12:25 PM
Pull E-mail address from file, send e-mail DC Heard Shell Programming and Scripting 1 01-29-2008 02:23 AM
To send a mail with a file attached samudha UNIX for Dummies Questions & Answers 5 07-16-2007 04:02 AM
How to send Mail with Attachement chgopi Shell Programming and Scripting 6 02-03-2006 05:46 AM
Send a mail with a subject and an attachement josecollantes UNIX for Dummies Questions & Answers 1 08-28-2001 12:55 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 07-23-2002
gaddeg gaddeg is offline
Registered User
  
 

Join Date: Apr 2002
Posts: 2
Send a mail with an attachement of a file

I wanted to try sending a mail with an attachement at command prompt in unix. Some one please advise that how we can do it ?

Thanks,
  #2 (permalink)  
Old 07-23-2002
google's Avatar
google google is offline Forum Advisor  
Moderator
  
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
Not sure how to "attach" something, but you could try the following to add a message to an email.Using 'cat' or 'more' to redirect the contents of your attachment into a variable that is piped to mail.

(the following command specifies both a return address and the sending address. They can be different if you so choose)

echo $MAIL_MESSAGE | mailx -s "Subject" -r $RETURN_ADDY $YOUR_ADDY
  #3 (permalink)  
Old 07-23-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
If you use the search button on this site and search for attach and mail, you will find quite a few discussions on the subject such as the following
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 03:31 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