|Perl: the Markov chain saw|
MIME Lite no line feed in Message bodyby sudheer157 (Initiate)
|on Jun 26, 2011 at 11:50 UTC||Need Help??|
sudheer157 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi i wrote a simple script to send email using MIME:Lite on Linux machine. I am trying to write the email body from a flat file, but the new line characters are not appearing in the email body. Sample code:
=== file1.txt ==
I am able to send an email but the body of the email is not as expected. the new lines are stripped out.
===== Mail body ===
Line one line two line three
I am wondering hot to get the mail body as is in the file1.txt ie line breaks are missing. I am not sure why perl is not considering the new line chars as line breaks. Appreciate you help.