The UNIX and Linux Forums  

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
Sending mail in the dead.letter file mjdavies UNIX for Dummies Questions & Answers 4 04-23-2008 03:36 AM
How to use "mail" to attach a file with an email? meili100 UNIX for Dummies Questions & Answers 2 02-23-2008 03:49 AM
How to attach a file & send mail thru script Mar1006 Shell Programming and Scripting 9 10-12-2006 09:54 AM
spooled file getting distorted when sending through unix mail chgopi UNIX for Dummies Questions & Answers 2 02-07-2006 03:26 PM
How to attach a file in mail? firebirdonfire UNIX for Dummies Questions & Answers 1 03-29-2001 08:38 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 01-09-2006
charan81 charan81 is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 19
Need to attach a txt file while sending mail

Hi,

I need to attach a txt file while sending mail thru Unix.

Please help me out in this..

-Charan.
  #2 (permalink)  
Old 01-09-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,960
sending attachment had been answered many times,

could you please make use of the search facility:

search the forum
  #3 (permalink)  
Old 01-10-2006
charan81 charan81 is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 19
I need to attach a txt file as well as embed some text in the mail body.

Thanks..

I need to attach a txt file as well as embed some text in the mail body.

How to add the mail body(Some text) while attaching a file like this :

uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com

Charan.
  #4 (permalink)  
Old 01-10-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,960

Code:
uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com < your_file_containing_message 

  #5 (permalink)  
Old 01-10-2006
charan81 charan81 is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 19
It Doesnt attach the txt file while embedding the mail body.

Madhan,

I tried this already..

uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com < your_file_containing_message

This is sending out a mail with the body of the "your_file_containing_message"
file.Doesnt attach the txt file.

Charan.
  #6 (permalink)  
Old 01-10-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,960
I am very sure the above command would work as requested.

Could you please post the exact command what you had tried?

That would be helpful to find out the problem.
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 07:50 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