Showing results for 
Search instead for 
Did you mean: 

Relaying mail attachment from UNIX to MS Outlook

M. L. Haynes
Occasional Visitor

Relaying mail attachment from UNIX to MS Outlook

I am new to UNIX scripting and messaging across multiple platforms.
Does anyone have experience with sending file attachments from UNIX to MS Outlook?

How can I get MS outlook to recognize the attachment being sent via uuencode?
Should I even be using uuencode with MS OUTLOOK or MIME?

If MIME, what's the syntax that should be used with mailx on the UNIX (HP-UX) side? Please see code below.

I'm developing an automated system to send email attachments for up to 100 files on a daily basis to MS OUTLOOK (MS Exchange Server).

The body of the email contains XML which is translated by MS OUTLOOK based on the subject (API) to automatically publish the attached file on our WEB portal. Please see code below...

uuencode filesource filedestination >> TEMPitem
cat API_format2.txt >> TEMPitem
mailx -m -s API < TEMPitem

Any ideas?
Thanks, M. L. Haynes
Veni Vidi Vici
Rita C Workman
Honored Contributor

Re: Relaying mail attachment from UNIX to MS Outlook

There's more than one way to do this. I prefer using the Include statement. I've even set it up to run jobs and general the include statement based on the new files to be sent. But you decide what's best for your shop.

Here's a url that goes into a couple options:,1150,0x41950559ff7cd4118fef0090279cd0f9,00.html