Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

how to mail file as an attachment ?

SOLVED
Go to solution
miaoxucheng
Advisor

how to mail file as an attachment ?

hi , expert !
I set an environment to send a email from HP UNIX system to WINDOWS MS exchenge server using the command 'mailx' ,but I can not send a file as an attachment ,how can I do this ?
thanks a lot .


pig

 

 

P.S. This thread has been moved from HP-UX > System Administration to HP-UX > messaging - HP Forums Moderator

3 REPLIES
Deepak Extross
Honored Contributor
Solution

Re: how to mail file as an attachment ?

Steven Sim Kok Leong
Honored Contributor

Re: how to mail file as an attachment ?

Hi,

Use uuencode and mime option.

# uuencode file file|mailx -m -s "mail with attachment" abc@xyz.com

Hope this helps. Regards.

Steven Sim Kok Leong
Email: steven@beepz.com. Homepage: https://www.beepz.com
Michael Tully
Honored Contributor

Re: how to mail file as an attachment ?

Hi,

Try this:

uuencode [filename] [name you want for attachment] | mailx -m -s "my subject" fred@domain.com

HTH
-Michael
Anyone for a Mutiny ?