diff options
author | Brandon West <brawest@gmail.com> | 2015-01-25 12:29:08 -0700 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2015-01-25 12:29:08 -0700 |
commit | e7aaf4a054dc9cc22f71947cfbdc4078275e7461 (patch) | |
tree | e8b5736e14a62e937f10ca90c3af2d091ac6f761 /SendGrid/Example/Program.cs | |
parent | 8f908d7f9417c8fa028d169a5ffadaf708f1382c (diff) | |
download | sendgrid-csharp-e7aaf4a054dc9cc22f71947cfbdc4078275e7461.zip sendgrid-csharp-e7aaf4a054dc9cc22f71947cfbdc4078275e7461.tar.gz sendgrid-csharp-e7aaf4a054dc9cc22f71947cfbdc4078275e7461.tar.bz2 |
add substitution tag with unicode
Diffstat (limited to 'SendGrid/Example/Program.cs')
-rw-r--r-- | SendGrid/Example/Program.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs index fa97707..a62d434 100644 --- a/SendGrid/Example/Program.cs +++ b/SendGrid/Example/Program.cs @@ -1,4 +1,5 @@ using System;
+using System.Collections.Generic;
using System.Net;
using System.Net.Mail;
using SendGrid;
@@ -15,7 +16,10 @@ namespace Example myMessage.AddTo("anna@example.com");
myMessage.From = new MailAddress("john@example.com", "John Smith");
myMessage.Subject = "Testing the SendGrid Library";
- myMessage.Text = "Hello World!";
+ myMessage.Text = "Hello World! %tag%";
+
+ var subs = new List<String> { "私はラーメンが大好き" };
+ myMessage.AddSubstitution("%tag%",subs);
SendAsync(myMessage);
|