The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > 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 08:15 AM
Thoughts/experiences of SAN attaching V880 to EMC SAN si_linux SUN Solaris 2 02-26-2007 04:20 PM
Can you e-mail files as attachments from unix to windows? nj78 UNIX for Dummies Questions & Answers 4 08-02-2006 01: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 05:31 AM
can not send mail from unix server to company/yahoo mail b5fnpct UNIX for Dummies Questions & Answers 5 11-22-2002 06:24 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-21-2006
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.
Reply With Quote
Forum Sponsor
  #2  
Old 06-22-2006
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
Reply With Quote
  #3  
Old 07-25-2006
crabbie_upk's Avatar
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
Reply With Quote
  #4  
Old 07-25-2006
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,644
See this script in the FAQ.
Reply With Quote
  #5  
Old 07-26-2006
Dhruva's Avatar
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
Reply With Quote
  #6  
Old 07-26-2006
Registered User
 

Join Date: Oct 2005
Posts: 135
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
Reply With Quote
  #7  
Old 07-27-2006
Registered User
 

Join Date: Jul 2006
Location: Hindusthan ( INDIA )
Posts: 18
no i tried this and i did not recvd any attachments in the mail... instead i recvd ...... the content of the file in the body of the mail...............


can anyone guide me .... how could i send a file as an attachment thru unix to outlook...... or any mailbox?????

regards,
vangalli
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
mailx, mailx attachment, sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0