G
Guest
Hi,
I'm using the MailMessage object to send an email programmatically via a
console application. It needs to have lines breaks. For example:
string s = "This is the first line + "\n\r" + "and this is the second line.";
This works fine when written to the console however the MailMessage object
ignores the \ escape key and returns a single lined string.
How can I use carriage returns in a MailMessage?
Many thanks in advance.
I'm using the MailMessage object to send an email programmatically via a
console application. It needs to have lines breaks. For example:
string s = "This is the first line + "\n\r" + "and this is the second line.";
This works fine when written to the console however the MailMessage object
ignores the \ escape key and returns a single lined string.
How can I use carriage returns in a MailMessage?
Many thanks in advance.