MapperKernelExec Method (MapperExecCmds, Int32, Object) |
Namespace: NetQuarry.Data
public override void RowAfterInsert(IMapper sender, EAPEventArgs e) { ServiceInfos svs = appContext.Services; IEmailService mail = (IEmailService)svs.GetServiceInstance("SmtpMail"); NetQuarry.Template tmpl = appContext.Templates[templateName]; NameValueCollection nv = sender.Exec(MapperExecCmds.KeyDisplayCollectionGet, 0); string body = tmpl.Replace(nameValues, NetQuarry.ContentResolution.High); string subject = tmpl.TextItems.GetText("Subject", "Notification"); mail.Send(string.Empty, sendToList, subject, body, true); }