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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      176 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      331 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      254 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      356 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      184 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X