Could be two-fold:
1. Built-in WL6-like feature
2. Code-based AlertByEmail analogue as a WealthScript method for sending customized alerts by email
1. Built-in WL6-like feature
2. Code-based AlertByEmail analogue as a WealthScript method for sending customized alerts by email
Rename
My WL6.9 strategy code heavily relies on AlertByEmail.
Please consider support AlertByEmail equivalent API in WL7.
Please consider support AlertByEmail equivalent API in WL7.
The source code is open, you can simply add it to your own method library:
http://www2.wealth-lab.com/WL5WIKI/CommunityComponentsMain.ashx
http://www2.wealth-lab.com/WL5WIKI/CommunityComponentsMain.ashx
CODE:
WealthLab.InternetEx.SendEmail(new WealthLab.EmailAlertParams(From, smtpServer, Port, _login, Pass, secure), To, Subj, Msg);
WL7's WealthLab class doesn't seem exporting InternetEx class, thus there is no SendEmail?
It's a so called extension method so it's not the WealthLab class that exposes the IntenetEx class. This is just syntactic sugar. Please read the Wiki link above, it has a pointer which explains extension methods. You'll find the class with the method in /ExtensionMethods folder of the solution (log in to the Wiki to get attachments).
As this request has reached Top-5, let me see if I can expose it as WealthScript method for Build 12 (i.e. #2) while leaving #1 (GUI feature) for Dion to decide.
Ahh, I found it in InternetEx.cs.
Because it is named as WealthLab, I thought it is the same WealthLab class and so I didn't search the code in the souce.
Because it is named as WealthLab, I thought it is the same WealthLab class and so I didn't search the code in the souce.
Added SendEmail for Build 12:
CODE:
public void SendEmail(string fromEmail, string smtpServer, string login, string password, int smtpPort, string toEmail, string messageSubject, string messageText, bool smtpEnableSSL = true)
Your Response
Post
Edit Post
Login is required