Operating System - HP-UX
1752511 Members
5061 Online
108788 Solutions
New Discussion юеВ

mailx with attached files

 
SILVERSTAR
Frequent Advisor

mailx with attached files

Hi ,

I have to send the following files using mailx:
1) 4315576 May 29 08:01 P600973_000027_report_analisi_cpi_2006149.zip
2) 2318206 Jun 4 08:01 P610747_000020_report_analisi_cpi_2006155.zip
3) 1477747 Jun 5 08:01 P611561_000009_report_analisi_cpi_2006156.zip

I do:
uuencode file1 file1 |mailx -m -s "file1" user@mail.adr

The two smallest files are received correctly the biggest one is truncated not readable via Lotus Notes, it says 'missing 471482 bytes in Zi pfile'.

I asked to the mailer server administrator the physical limit we have on the network, I says it is 10MB.

The uuencoded files are less that 10MB, see below for the 1)
5945970 Jun 6 09:54 mail_P600973_000027_report_analisi_cpi_2006149.zip

Is there any limitation on the unix server (B.11.11 U 9000/800) , or any limit for sendmail/mailx ?

thanks
Angelo
6 REPLIES 6
Cem Tugrul
Esteemed Contributor

Re: mailx with attached files

SILVERSTAR
Frequent Advisor

Re: mailx with attached files

Hi,

thanks for the link but I think it is strictly related to Linux.
My fault to mention that I have a HP-UX B.11.11 .

regards
Angelo
Steven E. Protter
Exalted Contributor

Re: mailx with attached files

Shalom,

Here is a working script with attachment.

http://www.hpux.ws/mailfile2

It works on both HP-UX and Linux, was developed for HP-UX. It uses sendmail and uuencode.

Note that some smtp firewalls cause problems with attachments when they relay mail. This requires a patch on the smtp gateway.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: mailx with attached files

Steven's is a good one - also take a look at mpack:

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

Mpack and munpack are utilities for encoding and decoding
(respectively) binary files in MIME (Multipurpose Internet Mail
Extensions) format mail messages.

Run it like so:

/usr/local/bin/mpack -s "svr004 cfg2html" svr004.html gwild@mydomain.ca


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.
Dave La Mar
Honored Contributor

Re: mailx with attached files

Angelo -
Attached is an in house doc we use for mutilpe uses of mailx. Written for HP-UX environmanet but may work on linux.

Regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."
SILVERSTAR
Frequent Advisor

Re: mailx with attached files

The issue was related to some characters bad interpretated by pkzip.
I have isolated the file (not the char) so by using pkzip -Ud (unix to dos) the issue disappear.

Thanks for your assistance
Angelo