summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example
diff options
context:
space:
mode:
authorWataru Sato <awwa500@gmail.com>2015-01-28 18:31:14 +0900
committerWataru Sato <awwa500@gmail.com>2015-01-28 18:31:14 +0900
commit35a76e291ee4cfbbe63a21a4b3819537eb0781fc (patch)
tree9a9bd83e9b5b2522350c98a2b1ed01059f6d7717 /SendGrid/Example
parentc14afcfbcf4aa04132a3742528b17f461272fa7c (diff)
downloadsendgrid-csharp-35a76e291ee4cfbbe63a21a4b3819537eb0781fc.zip
sendgrid-csharp-35a76e291ee4cfbbe63a21a4b3819537eb0781fc.tar.gz
sendgrid-csharp-35a76e291ee4cfbbe63a21a4b3819537eb0781fc.tar.bz2
AddSection
Diffstat (limited to 'SendGrid/Example')
-rw-r--r--SendGrid/Example/Program.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs
index aa8a5a9..113e3f5 100644
--- a/SendGrid/Example/Program.cs
+++ b/SendGrid/Example/Program.cs
@@ -13,14 +13,14 @@ namespace Example
{
// Create the email object first, then add the properties.
var myMessage = new SendGridMessage();
- myMessage.AddTo("anna@example.com");
+ myMessage.AddTo("anna@example.com");
myMessage.From = new MailAddress("john@example.com", "John Smith");
myMessage.Subject = "Testing the SendGrid Library";
myMessage.Text = "Hello World! %tag%";
- var subs = new List<String> { "私は%type%ラーメンが大好き" };
- myMessage.AddSubstitution("%tag%",subs);
- myMessage.AddSection("%type%", "とんこつ");
+ var subs = new List<String> { "私は%type%ラーメンが大好き" };
+ myMessage.AddSubstitution("%tag%",subs);
+ myMessage.AddSection("%type%", "とんこつ");
SendAsync(myMessage);