![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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
|
||||
|
||||
|
uuencode
try this
uuencode one.xls > mailattatch uuencode two.xls >> mailattatch cat mailattatch | mailx -s "Subject ...." xyz@mail.com |
|
#4
|
||||
|
||||
|
See this script in the FAQ.
|
|
#5
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |
| Tags |
| mailx, mailx attachment, sendmail |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|