removing end of file characters.
Posted: Fri Aug 26, 2005 10:16 am
I'm writing an app that reads a couple of files (a text file and an html file) in off the server and builds a multipart email out of the two files. The text is used as the plain text alternative and the html is used as the html part for those email clients that support it.
I'm using file_get_contents() to read the contents of the two files into strings. The problem I'm having is that the resulting strings are containing the end of file characters (at least I think they are) and I need to strip those out. If I send the email with those end of file characters still in the strings, nothing in the email past the first end of file is sent.
So how do I strip those out so I can get the entire email to send?
Thanks,
Eric Stewart
I'm using file_get_contents() to read the contents of the two files into strings. The problem I'm having is that the resulting strings are containing the end of file characters (at least I think they are) and I need to strip those out. If I send the email with those end of file characters still in the strings, nothing in the email past the first end of file is sent.
So how do I strip those out so I can get the entire email to send?
Thanks,
Eric Stewart