You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For a full transactional template example, please see this [use case](https://github.com/sendgrid/sendgrid-csharp/blob/master/USE_CASES.md#transactional-templates).
203
+
vardynamicTemplateData2=newExampleTemplateData
200
204
{
201
-
{ "%name4%", "Example Name 4" },
202
-
{ "%city4%", "London" }
205
+
Subject="Hi 2!",
206
+
Name="Example User 2",
207
+
Location=newLocation
208
+
{
209
+
City="Birmingham 2",
210
+
Country="United Kingdom 2"
211
+
}
203
212
};
204
-
msg.AddSubstitutions(substitutions1, 1);
213
+
214
+
msg.SetTemplateData(dynamicTemplateData2, 1);
205
215
206
216
msg.AddCustomArg("marketing3", "true", 1);
207
217
msg.AddCustomArg("transactional3", "false", 1);
@@ -260,7 +270,7 @@ namespace Example
260
270
msg.AddAttachments(attachments);
261
271
262
272
// For a full transactional template example, please see this [use case](https://github.com/sendgrid/sendgrid-csharp/blob/master/USE_CASES.md#transactional-templates).
0 commit comments