NexusFi: Find Your Edge


Home Menu

 





SendMailChart not firing


Discussion in NinjaTrader

Updated
    1. trending_up 1,429 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,189
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

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #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,189
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