public static void SendEmail(this EmailAlertParams param, string To, string MessageSubject, string MessageText) public EmailAlertParams(string from, string smtpServer, int port, string login, string pass, bool secure)public AlertByEmail( string from, string smtpserver, int port, string pass, bool secure ) public void SendEmail( string To, string Subj, string Msg )
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;namespace WealthLab.Strategies { public class TestEmail : WealthScript { protected override void Execute() { string From = "your.email@gmail.com"; string SmtpServer = "smtp.gmail.com"; int Port = 587; string Pass = "yourpassword"; bool Secure = true; EmailAlertParams param = new EmailAlertParams( From, SmtpServer, Port, Pass, Secure ); param.SendEmail( "another.address@gmail.com", "Hello World!", "E-mail generated by Wealth-Lab 6" ); } } }
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/namespace WealthLab.Strategies { public class TestEmail : WealthScript { protected override void Execute() { string From = "your.email@gmail.com"; string smtpServer = "smtp.gmail.com"; int Port = 587; string Pass = "yourpassword"; AlertByEmail mail = new AlertByEmail( From, smtpServer, Port, Pass, true ); mail.SendEmail( "another.address@gmail.com", "Hello World!", "E-mail generated by Wealth-Lab 5" ); } } }