title: Add 2 parameters to Email Template Body
body: <p>I have a email template and i have bind 1 parameter to it(this.OrderCode) and it's working .So now i need to bind another one.</p>
  
  <p>Email Template Like Below,</p>
  
  <pre><code>string OrderTemplate="&lt;p&gt;&lt;%=this.OrderCode%&gt;&lt;/p&gt;&lt;p&gt;&lt;%=this.ReferredTo%&gt;&lt;/p&gt;";
  
  tempValues comes like below,
  [0]this.OrderCode
  [1]ODR5000
  [2]this.ReferredTo
  [3]Janez Smithson
  </code></pre>
  
  <p>Using below code i need to show both of above values.In here only shows 1st value only(ODR5000)</p>
  
  <pre><code>public string EmailTemplate(string OrderTemplate, params string[] tempValues)
          {
              string templatebody = string.Empty;
              try
              {
                  templatebody = OrderTemplate;
                  for (var i = 0; i &lt; tempValues.Length; i++)
                  {
                      templatebody= templatebody.Replace("&lt;%={0}%&gt;".FormatWith(tempValues[i]), tempValues++);
                  }
              }
              catch (Exception ex)
              {
                  throw ex;
                  Log4NetLogger.Log(ex);
              }
              return templatebody;
          }
  </code></pre>