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 > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
attaching the file to mail javeed7 Shell Programming and Scripting 1 04-15-2008 12:15 PM
Thoughts/experiences of SAN attaching V880 to EMC SAN si_linux SUN Solaris 2 02-26-2007 07:20 PM
Can you e-mail files as attachments from unix to windows? nj78 UNIX for Dummies Questions & Answers 4 08-02-2006 05:12 PM
I am not able to send mail form unix to other mail accounts. chinnigd UNIX for Dummies Questions & Answers 1 04-06-2006 09:31 AM
can not send mail from unix server to company/yahoo mail b5fnpct UNIX for Dummies Questions & Answers 5 11-22-2002 09:24 PM

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 06-21-2006
unipepper unipepper is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 7
Attaching files in Mail with HP Unix

I am trying to attach a .xls file using uuencode in HP Unix
uuencode res1.xls res1.xls | mailx abc@xyz.com

But in the receiving end, I couldn't see the attachement, instead of it some encoded text is there in the body of mail

Can anybody suggest how to attach the files in HP Unix. I don't have MIME package installed, and we can't use.
  #2 (permalink)  
Old 06-22-2006
qfwfq qfwfq is offline
Registered User
  
 

Join Date: Feb 2005
Location: Canada
Posts: 133
Here is a part of my script. I use this script to send a .html file as an attachment.

Code:
DIR_FILES=/yourdir
EMAIL_TO=user@user.com
EMAIL_FROM=fromuser@user.com
ATTACHED_FILE=test.html
EMAIL_SUBJECT="The subject"
EMAIL_TEXT="Your text"
E_MESS=mail.tmp


echo "To:      $EMAIL_TO" > $DIR_FILES/$E_MESS
echo "From:    $EMAIL_FROM" >> $DIR_FILES/$E_MESS
echo "Subject: $EMAIL_SUBJECT" >> $DIR_FILES/$E_MESS
echo "" >> $DIR_FILES/$E_MESS
echo $EMAIL_TEXT >> $DIR_FILES/$E_MESS

uuencode $DIR_FILES/$ATTACHED_FILE $ATTACHED_FILE >> $DIR_FILES/$E_MESS
cat $DIR_FILES/$E_MESS | /usr/sbin/sendmail -t
  #3 (permalink)  
Old 07-25-2006
crabbie_upk's Avatar
crabbie_upk crabbie_upk is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 18
uuencode

try this

uuencode one.xls > mailattatch
uuencode two.xls >> mailattatch
cat mailattatch | mailx -s "Subject ...." xyz@mail.com
  #4 (permalink)  
Old 07-25-2006
reborg's Avatar
reborg reborg is online now Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,229
See this script in the FAQ.
  #5 (permalink)  
Old 07-26-2006
Dhruva's Avatar
Dhruva Dhruva is offline
Registered User
  
 

Join Date: Mar 2006
Location: India
Posts: 255
You can try with this script....this will show you how to enter subject ,body and attachment.

FILE_NAME="one.xls"
`cat > mail_filewatcher.log <<!
Team - Here is the action to be taken based on this mail.
Please work on the exceptions listed in the attachment to ensure.


THIS IS A SYSTEM GENERATED E-MAIL...PLEASE DO NOT REPLY.
!`
uuencode ${FILE_NAME} ${FILE_NAME}>>mail_filewatcher.log
mailx -s "enter your subject " mailid@xyz.com < mail_filewatcher.log
  #6 (permalink)  
Old 07-26-2006
mr_manny mr_manny is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 144
am I the only guy that uses mutt?

mutt is your friend

creating test attachment file
$ echo "this is the attachment file" > attatch.file
creating test body file
$ echo "this is the body" > body.file

sending mail w/following command
$ mutt -a attatch.file -s "this is the subject" user@emailADDY.com <body.file
  #7 (permalink)  
Old 07-27-2006
reborg's Avatar
reborg reborg is online now Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,229
Again, see this script in the FAQ. Perderabo, explained exactly why this happens.
Closed Thread

Bookmarks

Tags
mailx, mailx attachment, sendmail

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:32 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