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 send an email with some body content and attachment balireddy_77 Shell Programming and Scripting 2 08-20-2008 06:33 AM
Send email from unix (AIX) with PDF attachment sunjup AIX 0 03-14-2008 04:12 PM
Send email with attachment in form of excel in unix bdebroy Shell Programming and Scripting 8 09-05-2007 05:39 AM
How to send attachment to web-based email client using mailx randomcz1 Shell Programming and Scripting 1 11-07-2006 05:00 PM
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 08-13-2007
chiru_h chiru_h is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 72
send email from unix with attachment

Hello All,
This is a common question that I found lot of results in the forums.

I am trying to use uuencode to attach a file and send email. I have no issues sending email, but not able to attach any files using sendmail.

Is uuencode part of sendmail or does 'uuencode' utility need to be there on the machine? If so, can someone help me find where I can download it? I am using Linux RHEL 3.0 OS.

I am doing this:
content="To: chiru_h@xyz.com\n";
content="${content}From: chiru_h@xyz.com\n";
content="${content}Subject: This is a test\n";
content="${content}$(cat body.txt)\n";
content="${content}$(uuencode attach.txt)\n";
echo -e "$content" | /usr/lib/sendmail -tv

I could send email but not attach the file.

Please help!

Thanks,
Chiru
  #2 (permalink)  
Old 08-13-2007
jyoung jyoung is offline
Registered User
  
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 227
I did a search and found this:
http://www.unix.com/unix-desktop-for...g-problem.html

Hope it helps. Good Luck.
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 01:07 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