Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Formatting a email message

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

    Formatting a email message

    I am using the following command to send a email message.
    SendMail("[email protected]", "[email protected]", session, "Profit = " + GetAtmStrategyRealizedProfitLoss(longatmStrategyId ).ToString("0.00") + " Entry = " + longlimitPrice.ToString("0.00") + " Time = " + timelongsignal);

    This gives me the correct data but the format is as follows

    Profit = 00.00 Entry = 00.00 Time = 8/26/2010 9:30:00AM

    I would like the following format

    Profit = 00.00
    Entry = 00.00
    Time = 8/26/2010 9:30:00AM

    Is there a way to add a carriage returns to the command to produce the requested format?

    Thanks
    thepcmd
    Last edited by thepcmd; 09-04-2010, 04:59 PM.

    #2
    I haven't tried it, but Google gives me this:

    Code:
     [COLOR=#a31515]"text"[/COLOR] + [COLOR=#2b91af]Environment[/COLOR].NewLine + [COLOR=#a31515]"more text"[/COLOR]

    Comment


      #3
      It works

      Thank you MXASJ, that code works.

      SendMail("[email protected]", "[email protected]", session, "Profit = " + GetAtmStrategyRealizedProfitLoss(longatmStrategyId ).ToString("0.00") + Environment.NewLine + "Entry = " + longlimitPrice.ToString("0.00") + Environment.NewLine + "Time=" + timelongsignal);
      Last edited by thepcmd; 09-05-2010, 06:37 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      82 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      43 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X