in reply to Net::SMTP - Length limitation.

I suspect your problem may be that you are not sending a blank line between the header and the body, so your whole body is being sucked into the header and confusing either the SMTP server or the user agent. I think this is why it decided it was MIME-formatted as well, even though you have not generated a Content-type.

Try changing your second-to-last line to:

$smtp->datasend("Subject: Status Report $subject_date\n\n");
There may well be a limit to how much data you can send with no newlines embedded, but I don't think the actual length of the string itself matters as long as it's divided up by newlines every so often (about 6 lines of text for some user agents I've used). I've successfully used Net::SMTP to send a packet of 20 encoded pngs all sucked into one string, though so I know the string can be long.

Replies are listed 'Best First'.
Re: Re: Net::SMTP - Length limitation.
by the_0ne (Pilgrim) on May 16, 2001 at 16:56 UTC
    That's exactly what I'm finding. That's the work-around I found. I have the string split up into 3000 character chunks with a newline after each. That works, but when I remove the split, the mail fails.

    The reason I'm thinking this way also is I took the string that it had trouble with and copied it into a text editor and even the text editor couldn't handle it. Had to be broken up. So, I'm thinking this is a just a limitation that I'm going to have to code for. Which is fine but I wanted to make sure it was and not something stupid I'm doing.