NexusFi: Find Your Edge


Home Menu

 





SendMailChart not firing


Discussion in NinjaTrader

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




 
Search this Thread

SendMailChart not firing

  #1 (permalink)
 
stoicbuddha's Avatar
 stoicbuddha 
Seattle, WA
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: AMP/CQG
Trading: Indices
Frequency: Every few days
Duration: Minutes
Posts: 96 since Feb 2012
Thanks Given: 1,054
Thanks Received: 96

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?
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Strategy stop orders partially filled
EasyLanguage Programming
Trade idea based off three indicators.
Traders Hideout
 
  #3 (permalink)
 
stoicbuddha's Avatar
 stoicbuddha 
Seattle, WA
 
Experience: Intermediate
Platform: NinjaTrader 8
Broker: AMP/CQG
Trading: Indices
Frequency: Every few days
Duration: Minutes
Posts: 96 since Feb 2012
Thanks Given: 1,054
Thanks Received: 96


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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts