-Alex
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NT7 Beta13 sendmail not working
Collapse
X
-
NT7 Beta13 sendmail not working
I am using Sendmail in the onbarupdate of an indicator to alert me when a condition occurs along with drawing an arrow at candle. However, the arrow gets drawn but sendmail does nothing. Not sure if this is a bug or I am doing something wrong.
-AlexTags: None
-
Hi Betrand,
If I send a test email, it works just fine. However looking at the trace file I get
2010-04-08 09:38:20:603 ERROR: Failed to send mail: System.Net.Mail.SmtpException: The operation has timed out.
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at NinjaTrader.Cbi.Globals.SendMailNow(String from, String to, String cc, String subject, String body, String[] attachmentPaths)
at NinjaTrader.Cbi.Globals.MailThreadProc()
2010-04-08 09:40:20:626 ERROR: Failed to send mail: System.Net.Mail.SmtpException: The operation has timed out.
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at NinjaTrader.Cbi.Globals.SendMailNow(String from, String to, String cc, String subject, String body, String[] attachmentPaths)
at NinjaTrader.Cbi.Globals.MailThreadProc()
Every time a signal is triggered in my chart, I get a pop up window saying mail queue overflow. one or more mails have been dropped.
Comment
-
I noticed also, that when pressing test mail button in misc tab, nt freezes every so often and becomes totally unresponsive. Forcing me to kill process in task manager. I am using gmail, with smtp.gmail.com and port 465 SSL unchecked.
Comment
-
Ok I disabled firewall and blanked out all email fields and test mail button works without getting stuck for more than a few secs. However sendmail does absolutely nothing inside one of my indicators where before it was getting stuck while email fields had logging data for gmail.
I am attaching a sample test script that should generate plenty of emails when close crosses above or below ema5 using 5R. The trace file shows nothing about sending any emails. Hope this helps in debugging.
-AlexAttached Files
Comment
-
Alex, your script works perfectly here for me - do you have another email address to try? Please use the default settings under Tools > Options > Misc and then just do this for example -
The dot will give you a visual clue to check the condition hits home and when it does.Code:if(CrossAbove(Close,EMA(5),1) || CrossBelow(Close,EMA(5),1)) { SendMail("your first email address","your backup email address",Instrument.FullName,""); DrawDot("mydot" + CurrentBar, true, 0, Low[0], Color.Aquamarine); }
Comment
-
Thanks for testing it. Looked further and noticed there is an issue with my email. Problem was fixed using an alternate email. Many thanks again
Alex
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
344 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment