PDA

View Full Version : Can I send an email from NinjaScript?


NinjaTrader_Ray
01-19-2007, 01:25 AM
To send an email use the method:

SendMail(string from, string to, string subject string text)

if (condition == true)
SendMail(jim@test.com (mailto:jim@test.com), john@testing.com (mailto:john@testing.com), "Condition Is True", "Buy Now!");



Ray

vbulkin
03-25-2007, 07:59 AM
I tried this function and nothing happened. How is it configured? Any requirements for SMTP server?

NinjaTrader_Ray
03-25-2007, 08:48 AM
It only works on real-time data. It will not generate messages on historical data to prevent an overload of email messages being sent to the server.

Ray

PrTester
05-22-2008, 05:40 AM
It only works on real-time data. It will not generate messages on historical data to prevent an overload of email messages being sent to the server.

Ray

Do you have any report on Zo## Alar# firewall interference with the SendMAil() command?, Any report with other software?

NinjaTrader_Dierk
05-22-2008, 05:53 AM
None at this time. I suggest turning off any filters/blockers which could have impact.

kiwuji
01-19-2012, 09:21 PM
if you are having problem with email alerts, it's most like due to window firewall. I m still testing settings that will work with the firewall