PDA

View Full Version : FormMail help - print MAIL limitations?



shummer
04-21-2006, 11:50 AM
Does anybody know of a limitation in the print MAIL line of code that would automatically insert a '!' and a line break '\n' after 989 characters including spaces? I'm not sure if it's an issue with formmail.pl, the print MAIL command line, cgi, or what.

I created a simple form where people sign a lengthy waiver of liability. The inputs are simple and short like the person's name, relation to participant, signed name, etc. I wanted to include all the liability/legal text which is long ( >989 characters including spaces) in the generated e-mails. The liability/legal text is to be one paragraph - no line breaks, extra characters, whatever.

An example of the code:

print MAIL "The undersigned represents blah blah blah blah blah.";

An example of the e-mail generated:

The undersigned represents blah bl!
ah blah blah !
blah.

where the character count including spaces is 989 between "The" and "bl" and 989 between "ah and " ". Any ideas?