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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      612 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      355 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      561 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      564 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X