Example #1
0
        public static async Task SendBoundEmail(String to, String toName, String subject, String emailTemplateName,
                                                List <Object> emailInputData, String fromEmail = null)
        {
            List <FieldDataBindingModel> boundData =
                BoundDataManager.GetBoundDataList <EmailBoundAttribute>(emailInputData);
            var bodyTemplate = GetEmailTemplate(emailTemplateName);
            var body         = StringProcessor.GetStringWithSubstitutions(bodyTemplate, boundData);

            await Send(to, toName, subject, body, fromEmail);
        }