Operating System - HP-UX
1833420 Members
3285 Online
110052 Solutions
New Discussion

Re: Send attachment by unix e-mail, then dumbed into database.

 
David Johnson_6
Advisor

Send attachment by unix e-mail, then dumbed into database.

Hello everyone,
I am trying to send an attachment from Unix to windows using mailx.
The windows based system will the try to import this into a database.
The problem is the file looks fine before e-mail, but tries to load into
database as one long line or field.

The attachment/file is a '|" delemited file or stand informix unload.
this is the command I used to e-mail attachments.
( uuencode file1.txt file1.txt;uuencode file2.txt file2.txt) | mailx -m -s ""Subject" e-mail@address.com
2 REPLIES 2
Geoff Wild
Honored Contributor

Re: Send attachment by unix e-mail, then dumbed into database.

Try mpack:

http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Olivier Masse
Honored Contributor

Re: Send attachment by unix e-mail, then dumbed into database.

Try running it through ux2dos first to add CRs in your text file.

cat file1.txt | uuencode file1.txt etc...

Olivier.