Cone8
 ( 24.56% )
- ago
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
12
1,123
7 Replies

Reply

Bookmark

Sort
kazuna8
 ( 40.94% )
- ago
#1
My WL6.9 strategy code heavily relies on AlertByEmail.
Please consider support AlertByEmail equivalent API in WL7.
0
- ago
#2
The source code is open, you can simply add it to your own method library:
http://www2.wealth-lab.com/WL5WIKI/CommunityComponentsMain.ashx
0
kazuna8
 ( 40.94% )
- ago
#3
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?
0
- ago
#4
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).
0
- ago
#5
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.
0
kazuna8
 ( 40.94% )
- ago
#6
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.
0
- ago
#7
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)
1

Reply

Bookmark

Sort