NexusFi: Find Your Edge


Home Menu

 





SendMailChart not firing


Discussion in NinjaTrader

Updated
    1. trending_up 1,669 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
stoicbuddha's Avatar
 stoicbuddha 
Seattle, WA
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: AMP/CQG
Trading: S&P, Nasdaq
Frequency: Every few days
Duration: Minutes
Posts: 103 since Feb 2012
Thanks Given: 1,201
Thanks Received: 101

I've been trying to use the SendMailChartLib code to email a chart using SendMailChart(....
Cal anyone else who uses this send me a sample of the actual line that sends the email. I tried using the sample from SendMailChartLib.cs and it did not work, but if I use the same account settings from the Ninjatrader interface it is able to send sample email.

Here's my SendMailChart line:

SendMailChart(ChartControl, subj, message, "[email protected]", "[email protected]", "smtp.gmail.com", 587, "[email protected]", "obviouslyfake");

There could be something simple I am missing as I'm new to Ninjascript/C#.

Thanks in advance.


Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
AI for Traders — Agents, Memory, Tools & Real-Worl …
Elite Quantitative GenAI/LLM
What we know about Binances $6.3bn hack - BBC News
Cryptocurrency
My Rant with AMP Futures
Trading Reviews and Vendors
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
 
  #3 (permalink)
 
stoicbuddha's Avatar
 stoicbuddha 
Seattle, WA
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: AMP/CQG
Trading: S&P, Nasdaq
Frequency: Every few days
Duration: Minutes
Posts: 103 since Feb 2012
Thanks Given: 1,201
Thanks Received: 101


I found the reason this was not working. It was an error with:

smtp.UseDefaultCredentials = false;

not appearing before:

smtp.Credentials = new System.Net.NetworkCredential(Username, Password);

It made sending mail from a gmail account impossible.


Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:




Last Updated on March 14, 2014


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts