in reply to Net::SMTP - Length limitation.

I may be way off on this, but it appears you are getting the information to be mailed through some sort of web form using CGI.pm.

It is possible the message body portion could be coming in *incomplete* and that could be messing up the works. I would try it temporarily assigning your body variable to some text of about the same size, but not brought in from a webform.

Perhaps reading it from a file or just setting it directly in the script to try it out.

The reason why I mention this is I had a similar problem (putting text into a database) where it blew up when the amount of input was around 45K.

There are two places that would be (or could be) limiting the amount of data you can post. One is the webserver itself, and where that setting might be, and whether or not it can be adjusted depends on the webserver itself. The other is in the $CGI::POST_MAX setting of CGI.pm for which you might find useful information here

EEjack

Replies are listed 'Best First'.
Re: Re: Net::SMTP - Length limitation.
by Banky (Acolyte) on May 16, 2001 at 09:37 UTC
    4K sounds like around the number that a form using GET might get cut-off at... you might wanna change the web-form's method to a POST if it isn't already.
      Funny you say that because that's almost exactly the limit that I'm being cut off at. But problem there is I'm using POST not GET. I just think it's a limit I'm going to have to deal with. My reply below shows that I'm also having trouble if I take that line that's causing the failure and copy it into a text editor. The text editor can't handle it over 4K either. Once I split it into 3000 char chunks, it works fine. So, must just be a limitation I'm going to have to handle.
Re: Re: Net::SMTP - Length limitation.
by the_0ne (Pilgrim) on May 16, 2001 at 08:15 UTC
    hmmmmmm, sounds sensible enough. I was just checking before I hit the sack so I'll try this in the morning and post tomorrow if that does seem to be the problem.

    Thanks for the reply.