Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter key in SendMail()

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

    Enter key in SendMail()

    Hi,

    Is it possible to apply Enter key in "Message body of email" in SendMail()?

    If not, is there any way to separate different kind of information which I want to include in one email message?

    Is it possible to format email message (html) or just simple text?

    Please support.

    #2
    Hello kucharek,
    Can you please clarify what do you mean by "Enter key".

    The Message body of the email is a string overload and you can add any input to it using the ToString() method.

    The body is a string overload, and you can use any strings to send the message.

    I look forward to assisting you further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hi,

      I mean by Enter key that I want to add next text line to my message. In html it would be <br> or <p>.

      Comment


        #4
        Hello
        Thanks for the clarification.

        Yes, you can add a new line line to your message. A sample code will be like

        Code:
        string msg = "Hello[B][COLOR="Blue"]\n[/COLOR][/B]World";
        Please refer here to know more
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        25 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        115 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        225 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        411 views
        0 likes
        Last Post CaptainJack  
        Working...
        X