in reply to content-length first line

I agree with you two, a Module is a better solution for sending mail, but I tried to solve the actual problem and if there are any newlines, the Module could do the same suspicious things but is harder to debug.
Personally, I prefer piped mail program when writing one-time scripts which need to mail something usually to one person (usually me). But these scripts never leave the machine where they're written and I know the mail server installation.