/// <summary>
 /// Using a dictionary of replacement keys with their corresponding values,
 /// replace the placeholders in each of the email form fields. Dictionary
 /// keys have the placeholder brackets ("[]") added to them, so these
 /// don't need to be included.
 /// </summary>
 /// <param name="template">The email template to process.</param>
 /// <param name="phData">The placeholder data.</param>
 private void ReplacePlaceholders(DEF_Fields template, Dictionary <string, string> phData)
 {
     template.Subject       = ReplacePlaceholders(template.Subject, phData);
     template.Body          = ReplacePlaceholders(template.Body, phData);
     template.ReceiverEmail = ReplacePlaceholders(template.ReceiverEmail, phData);
     template.CCEmail       = ReplacePlaceholders(template.CCEmail, phData);
     template.BCCEmail      = ReplacePlaceholders(template.BCCEmail, phData);
     template.SenderEmail   = ReplacePlaceholders(template.SenderEmail, phData);
     template.SenderName    = ReplacePlaceholders(template.SenderName, phData);
 }
 /// <summary>
 /// Using a dictionary of replacement keys with their corresponding values,
 /// replace the placeholders in each of the email form fields. Dictionary
 /// keys have the placeholder brackets ("[]") added to them, so these
 /// don't need to be included.
 /// </summary>
 /// <param name="template">The email template to process.</param>
 /// <param name="phData">The placeholder data.</param>
 private void ReplacePlaceholders(DEF_Fields template, Dictionary<string, string> phData)
 {
     template.Subject = ReplacePlaceholders(template.Subject, phData);
     template.Body = ReplacePlaceholders(template.Body, phData);
     template.ReceiverEmail = ReplacePlaceholders(template.ReceiverEmail, phData);
     template.CCEmail = ReplacePlaceholders(template.CCEmail, phData);
     template.BCCEmail = ReplacePlaceholders(template.BCCEmail, phData);
     template.SenderEmail = ReplacePlaceholders(template.SenderEmail, phData);
     template.SenderName = ReplacePlaceholders(template.SenderName, phData);
 }