summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElmer Thomas <elmer@ThinkingSerious.com>2016-02-09 10:39:56 -0800
committerElmer Thomas <elmer@ThinkingSerious.com>2016-02-09 10:39:56 -0800
commitb154710fa884fcfa6cd269a2e42cce181ff4db7f (patch)
tree6e3b4c89bdc2d3a54851c6c099be18e78d2d349b
parent7c6716e769de30a597f9991ddf4382ceeed6ca10 (diff)
parent0df37f92a1196e2a7c8ae68addf78c27bfb58c8e (diff)
downloadsendgrid-csharp-b154710fa884fcfa6cd269a2e42cce181ff4db7f.zip
sendgrid-csharp-b154710fa884fcfa6cd269a2e42cce181ff4db7f.tar.gz
sendgrid-csharp-b154710fa884fcfa6cd269a2e42cce181ff4db7f.tar.bz2
Merge pull request #187 from ccasbre27/master
How to use template email
-rw-r--r--README.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0bb4bb7..2bb57fd 100644
--- a/README.md
+++ b/README.md
@@ -109,7 +109,7 @@ using (var attachmentFileStream = new FileStream(@"C:\file.txt", FileMode.Open))
}
```
-#How to: Use filters to enable footers, tracking, and analytics
+#How to: Use filters to enable footers, tracking, analytics and templates
SendGrid provides additional email functionality through the use of filters. These are settings that can be added to an email message to enable specific functionality such as click tracking, Google analytics, subscription tracking, and so on. For a full list of filters, see [Filter Settings](https://sendgrid.com/docs/API_Reference/SMTP_API/apps.html).
@@ -145,6 +145,19 @@ myMessage.Text = "Hello World!";
myMessage.EnableClickTracking(true);
```
+##Template
+```csharp
+// Create the email object first, then add the properties.
+SendGridMessage myMessage = new SendGridMessage();
+myMessage.AddTo("anna@example.com");
+myMessage.From = new MailAddress("john@example.com", "John Smith");
+myMessage.Subject = "Testing the SendGrid Library";
+myMessage.Text = "Hello World!";
+
+// Enable template engine, you must send the template id
+ myMessage.EnableTemplateEngine("template id");
+```
+
#How to: Use the [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html)
Note: We have just begun to implement support for these endpoints and therefore only the following endpoints are currently supported. This functionality is located in the "SendGrid" project.