title: How to Add Custom variables to SendGrid email via API C# and Template
body: <p>I am trying to figure out how to add variables to existing template (example: Web Link Or Name dynamically) which has been created in sendgrid template engine, I am unsure how to do this using the SendGrid C# .NET libraries. I am wondering if anyone could help me.</p>
  
  <pre><code>// Create the email object first, then add the properties.
  SendGridMessage myMessage = new SendGridMessage();
  
  myMessage.AddTo("test@test.com");
  myMessage.From = new MailAddress("test@test.com", "Mr test");
  myMessage.Subject = " ";
  
  var timestamp = DateTime.Now.ToString("HH:mm:ss tt");
  myMessage.Html = "&lt;p&gt;&lt;/p&gt; ";
  
  myMessage.EnableTemplate("&lt;p&gt; &lt;% body %&gt; Hello&lt;/p&gt;");
  myMessage.EnableTemplateEngine("9386b483-8ad4-48c2-9ee3-afc7618eb56a");
  var identifiers = new Dictionary&lt;String, String&gt;();
  identifiers["USER_FULLNAME"] = "Jimbo Jones";
  identifiers["VERIFICATION_URL"] = "www.google.com";
  myMessage.AddUniqueArgs(identifiers);
  
  // Create credentials, specifying your user name and password.
  var credentials = new NetworkCredential("username", "password");
  // Create an Web transport for sending email.
  var transportWeb = new Web(credentials);
  // Send the email.
  transportWeb.Deliver(myMessage);
  </code></pre>