else if (State == State.DataLoaded){
Print("test");
SendMail(Email,"testIns","test");
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SendMail not working
Collapse
X
-
SendMail not working
I'm unable to get my alerts to fire and send emails for the last couple weeks. did something change? I am able to use the share services test email functionality but it doesn't seem to work in my indicator anymore. I made a short test script w/ the Email set to mine above but I only see 'test' being printed in the output window. It doesn't seem to even attempt to try and run sendmail.Code:Tags: None
-
Hello habibalex,
Thank you for your post.
The issue is that you're calling SendMail() during State.DataLoaded. SendMail() may only be called during State.Realtime.
The correct usage would then be:
else if (State == State.Realtime)
{
Print("test");
SendMail(Email,"testIns","test");
}
Here is a link to our help guide on SendMail():
Please let us know if we may be of further assistance to you.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
46 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
67 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
35 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
95 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
59 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment