Operating System - HP-UX
1832617 Members
3564 Online
110043 Solutions
New Discussion

Re: attaching PDF's from HPUX

 
samash
Advisor

attaching PDF's from HPUX

I need to have the ability to attach PDF docs from HPUX and send to our exchange server for viewing and printing. Is anyone out doing this? Here's what I have tried so far.

Mutt- Seems to work perfectly in linux. I can not get it properly installed in HPUX. The version I used is 1.5.17.

Elm- I can not get to work.

Sendmail- using uuencode will mail the attachment but it needs to be uudecoded.

Mailx- I was unable to get it to send a pdf doc successfully.

Please advise.
8 REPLIES 8
Rita C Workman
Honored Contributor

Re: attaching PDF's from HPUX

Well I use a simple [include statement] to send attachments. Cost - Free. You probably already have the ability to do this:

There a few old threads on this, you can try to search for Mailing Attachments MIME

But for a quick instruction:
Create a file, I'll call this one dummy.include-file, with the contents that look like this for pdf

[include application/adobe base64]

You can put as many files as you wish, each on a seperate line. Then just email them like this:

elm -s "test sending pdf files to Exchange" yourname@company.com < dummy.include-file

Hope you like it,
Rgrds,
Rita
Tim Nelson
Honored Contributor

Re: attaching PDF's from HPUX

just as easy

uuencode myfile.pdf myfile.pdf|mailx -m -s "my files" user@domain.com

samash
Advisor

Re: attaching PDF's from HPUX

Hey guys thanks for the reply.

Rita when I execute your elm command. It produces no attachment and in the body it only produces ->

Tim I never received the email from your syntax. I tried uuencode with different option and It sends the email with an attachment. However it will not open. It complains about needing to be decoded.

Thanks
Rita C Workman
Honored Contributor

Re: attaching PDF's from HPUX


What version of sendmail do you have configured on your server? Are you able to mail from the HPUX server now?

Do you have your elm directories created? If not, then just run elm and respond 'y' to create them. Then try command agai.

Our boxes use sendmail and relay to our Exchange server and we use the old utility all the time. Just test it - pdf attachment there.

Let us know..
Rgrds,
Rita
samash
Advisor

Re: attaching PDF's from HPUX

Sendmail version 8.9.1

It's only pdf's that causing the problem I can send text attachment just fine.

Thanks
Rita C Workman
Honored Contributor

Re: attaching PDF's from HPUX

Can you attach your include file?

And you do you have permission to the file being sent? [You don't mention the account_id your using]

Thanks,
Rita
samash
Advisor

Re: attaching PDF's from HPUX

Hey Rita,

Thanks for the help. I think I found the answer using mpack. Here's the syntax thanks to a friend.

mpack -s "TEST2: using mpack" -c application/octet-stream $ATTACHMENT $MAILTO


Thanks again for all of the help.
Rita C Workman
Honored Contributor

Re: attaching PDF's from HPUX

If it works for you, then it's right for you.

Rgrds,
Rita