Here i have a message string that displays the content of an email. I would like the From, The subject and the body to all display on a new line.
Could someone please advise on how this is done. Below is what i'm trying but its all still on one line.
I thought enviroment.newline would work, i still think it will but maby im doing it wrong?
MessageString = "From: " + message.Headers.From.Address + Environment.NewLine + "Subject: " + message.Headers.Subject + Environment.NewLine + "Body: " + messagePart.BodyEncoding.GetString(messagePart.Body);
if you could also show me how to write code over multiple lines and still have it function that would be awesome too???????