Conversion of plain text file to html file
<p>I want to convert a .txt file say abc.txt into html file and attach this html file to the mail which is getting triggered by my script.</p>

<p>I want to preserve the format of .txt file which is a plain text with new lines and special characters like -,:;/()</p>

<p>Could someone please help me on this?</p>