Operating System - HP-UX
1745866 Members
4303 Online
108723 Solutions
New Discussion

Issues in sendmail on HP-UX 11.11

 

Issues in sendmail on HP-UX 11.11

We are currently running a Perl script on HP UX 11.11 server which reads the data from a plain text file stored on the server and mails the contents of the file using “sendmail”. Since the contents of the data file are in html Unicode values, there are no blank spaces or line breaks present. This functionality works fine in normal cases but when the content line in the file is too large then the line gets cut after a particular number of characters. Hence this abrupt wrapping of the line leads to a data loss. We have also tried the option of sending the mails by directly calling the sendmail command on the shell prompt (instead of the call from Perl scripts). But the results are the same.

The version of the “sendmail” on the server is 8.8.

We would like to know whether there is any constraint in the UNIX environment on the length of a line or this version of sendmail doesn’t support very long
It Has Been...
3 REPLIES 3
Peter Godron
Honored Contributor

Re: Issues in sendmail on HP-UX 11.11

Hi,
1. perl may a problem with the filesize
Unlikely as the same happens from the command line prompt.

2. How does the perl script attach the data?

3. How much data is being sent?
I think the SINGLE line command line length is 256 characters.

4. Can you try a :
mailx -s"test" email@host.com < datafile

Regards

Re: Issues in sendmail on HP-UX 11.11

It breaks the long line after 2040 characters. Also it appends an exclamation mark (!) at the end of the line.
We tried the mailx command and the problem persists.
It Has Been...
Peter Godron
Honored Contributor

Re: Issues in sendmail on HP-UX 11.11

Hi,
have toy tried changing the sending to an attachment format.
Script (please modify) attached.
Regards