Operating System - HP-UX
1752781 Members
6042 Online
108789 Solutions
New Discussion

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 3
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
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 ?