How do I send an email?

We have an internal implementation of email sending.

In order to send an email you need to call the OptimaJet.DWKit.Core.Utils.Email.SendEmail method with the following parameters:

  • FormName — name of a form with an email template
  • Email — email
  • Dictionary of parameters — parameters for a template, all strings like this {Name} will replace to the Name parameter value

You might call the SendEmail method in your code or in a CodeAction.

Have a look at an email template example or at the call of the SendEmail method.