Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to create a mail with text content in a vertical display?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to create a mail with text content in a vertical display?

    I use the mail service a lot for alert and info purposes. I use it as shown in the guide. However, all the message body is displayed as a long line of several pieces. What I look for is being able to show those different pieces within the message body in a vertical way.

    I'm sure this is an easy question for C# pros, but I'm a little stuck here.

    Thanks
    Last edited by pstrusi; 02-07-2020, 02:10 AM.

    #2
    Hello pstrusi,

    Thank you for your post.

    The simplest way to break your message body up into lines would be to use the newline character (\n) in your string:

    "This is a line \n This is on the next line"

    This would print:

    This is a line
    This is on the next line

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Thank you Kate, exactly what I needed to know.
      Regards

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      22 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      10 views
      0 likes
      Last Post cre8able  
      Working...
      X