NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 08-07-2012, 04:55 AM   #1
kucharek
Senior Member
 
Join Date: Nov 2011
Location: Warsaw, Poland
Posts: 105
Thanks: 30
Thanked 3 times in 3 posts
Default 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.
kucharek is offline  
Reply With Quote
Old 08-07-2012, 05:04 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

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.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-07-2012, 05:08 AM   #3
kucharek
Senior Member
 
Join Date: Nov 2011
Location: Warsaw, Poland
Posts: 105
Thanks: 30
Thanked 3 times in 3 posts
Default

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>.
kucharek is offline  
Reply With Quote
Old 08-07-2012, 05:15 AM   #4
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

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\nWorld";
Please refer here to know more
http://msdn.microsoft.com/en-us/libr...t.newline.aspx
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SendMail() guillembm Miscellaneous Support 5 07-20-2011 03:29 AM
SendMail() tony900hwk Version 7 Beta General Questions & Bug Reports 4 06-15-2010 08:53 AM
SendMail ryebank Market Analyzer 8 06-08-2010 02:56 PM
Error when Remove Hot Key on collapsed hot key category in Hot Key Manager Neil_ Version 7 Beta General Questions & Bug Reports 2 03-22-2010 03:11 AM
SendMail atrader General Programming 2 03-22-2009 07:45 AM


All times are GMT -6. The time now is 12:33 AM.