Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I need an alternative to SendMail () in NinjaTrader. Events:
1. I´ve download Mail.dll from Lesnikowski .NET components.
2. I clicked right mouse button in the NinjaScript Editor and selected the NinjaScript menu name "References…"
3. In the "References…" window, button dialog "Add…"
4. I have selected Mail.dll
5. Also I added using declarations:
using Lesnikowski.Client;
using Lesnikowski.Client.IMAP;
using Lesnikowski.Mail;
using Lesnikowski.Mail.Fluent;
using Lesnikowski.Mail.Headers;
using Lesnikowski.Mail.Headers.Constants;
6. The logic of the indicator is as follows:
7. No errors in compile mode.
8. The logic run in Visual Studio 2010 but not run in NinjaTrader, error in output window:
Error on calling 'OnStartUp' method for indicator 'emailer': Los controladores AssemblyResolveEvent no pueden devolver ensamblados cargados sólo para reflexión.
more info here Resolver cargas de ensamblado (but I do not understand)
9. Please, anyone can help me or know a better solution?
Thanks in advance.
Can you help answer these questions from other members on NexusFi?
The code above is an example. Maybe I expressed myself badly, I want to program a function "ReceiveMail()" for read the subject of an email and enter the signal in the chart. Mail.dll has this feature but System.Net.Mail not. Another solution?