M
Mike
Hi.
I am trying to read a simle text file into a string variable, alter the text
using string.Replace(), then use the resulting text as the body for an
email.
This works fine up until the second step. When I read the text in from the
file, all the line breaks get replaced with '\n\r' characters. This would
be OK if, when I used the text as the email body, the converted back to
newlines, but this does not happen, so my email is on one long line filled
with \n's and \r's.
How do I "unescape" these characters to be actual newlines in my email?
Thanks in advance for your help,
Mike
I am trying to read a simle text file into a string variable, alter the text
using string.Replace(), then use the resulting text as the body for an
email.
This works fine up until the second step. When I read the text in from the
file, all the line breaks get replaced with '\n\r' characters. This would
be OK if, when I used the text as the email body, the converted back to
newlines, but this does not happen, so my email is on one long line filled
with \n's and \r's.
How do I "unescape" these characters to be actual newlines in my email?
Thanks in advance for your help,
Mike