Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
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 ?