title: Send an email with a HTML file as body. Parameters such as name, email address etc need to be injected into the file when the email is sent
body: <p>I have an HTML template saved as a file. Basically what I want to do is trigger a Welcome Email whenever a customer buys a product. The email body will be same as the HTML file saved. Currently, I am doing it the following way.</p>
  
  <p>My cs file looks like this:</p>
  
  <pre><code>public Task&lt;EmailResponse&gt; SendEmail(EmailRequest emailObject)
          {
              var response = new EmailResponse();
              var smtpClient = new SmtpClient
              {
                  EnableSsl = false,
                  Port = 
                  Host = ""
              };
  
              var Message = new MailMessage
              {
                  Subject = ,
                  From = new MailAddress(emailObject.FromEmail, emailObject.FromName),
                  IsBodyHtml = true,
                  Body = WebUtility.HtmlDecode(emailObject.Html)
                  };
  ...
  }
  </code></pre>