none
CRLF and sending mails with EWS RRS feed

  • Question

  • Hi,

    I try to send mails with ews which is working ok except for the crlf's from the mailbody that keep on disappearing...

    Nothing seems to help (putting a fuulstop at the end of each line, using rtf, ...)

    thx for any help

    Sunday, October 18, 2015 2:11 PM

Answers

  • Hallo all!

    Found it ... couldn't be simpler (vb):

      message.Body = New BodyType()

      message.Body.BodyType = BodyType.Text

      message.Body.Text = string 'string containing crlf's

    • Marked as answer by Chris Dr Sunday, October 18, 2015 4:52 PM
    Sunday, October 18, 2015 4:51 PM

All replies

  • Have you also tried two CRLF?

    If the HTML format is supported too, then try putting one or two “<br/>” between paragraphs, or consider the “<p>” element.

    Sunday, October 18, 2015 4:40 PM
  • Hallo all!

    Found it ... couldn't be simpler (vb):

      message.Body = New BodyType()

      message.Body.BodyType = BodyType.Text

      message.Body.Text = string 'string containing crlf's

    • Marked as answer by Chris Dr Sunday, October 18, 2015 4:52 PM
    Sunday, October 18, 2015 4:51 PM