Operating System - HP-UX
1856624 Members
2735 Online
104113 Solutions
New Discussion

Re: sendmail + file attachement

 
Radouan Bouzite
Advisor

sendmail + file attachement

Is there any way to send an attachement file with sendmail in HP-UX ???
6 REPLIES 6
Pete Randall
Outstanding Contributor
Ivan Krastev
Honored Contributor

Re: sendmail + file attachement

You can with uuencode :

cat file | uuencode target_filename | mail -s "subject" test@test.com


cheers,
ivan
TwoProc
Honored Contributor

Re: sendmail + file attachement

I've found in my notes from someone else's previous posting the following (which I've excerpted):

>gzip -c myfile > myfile.gz
>echo "[include myfile.gz application/octet-stream base64]" > myfile.gz.uu

>elm -s "Subject - myfile.gz" username@mailaddr.com < myfile.gz.uu

We are the people our parents warned us about --Jimmy Buffett
Deoncia Grayson_1
Honored Contributor

Re: sendmail + file attachement

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=980241
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Radouan Bouzite
Advisor

Re: sendmail + file attachement

Many thanks to Pete, Ivan, John and Deoncia,

It works, I was missing the option "-m" in mailx .
Radouan Bouzite
Advisor

Re: sendmail + file attachement

I will close this thread.
Many thanks for all .