Contents:
Bare newlines is a nono in an RFC 822 message. You should first try to fix the software that is causing the problem.