summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrandonmwest <brawest@gmail.com>2013-01-17 16:31:33 -0700
committerbrandonmwest <brawest@gmail.com>2013-01-17 16:31:33 -0700
commit51c7a094bda3a1bb94231278084b8a3066f270ce (patch)
treececd076664d8396b8ae2420c27a46952c1542228
parent7ed2ce8a1a20bb0334b2427c68800d3ced20028e (diff)
downloadsendgrid-csharp-51c7a094bda3a1bb94231278084b8a3066f270ce.zip
sendgrid-csharp-51c7a094bda3a1bb94231278084b8a3066f270ce.tar.gz
sendgrid-csharp-51c7a094bda3a1bb94231278084b8a3066f270ce.tar.bz2
Update README.md
-rwxr-xr-xREADME.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index d0e7c42..c6cddd0 100755
--- a/README.md
+++ b/README.md
@@ -4,9 +4,19 @@ To use SendGrid in your C# project, you can either <a href="https://github.com/s
PM> Install-Package SendGrid
```
+The SendGrid library depends on [RestSharp](https://github.com/restsharp/RestSharp). NuGet will handle this dependency automatically, otherwise you will need to add it manually.
+
Once you have the SendGrid libraries properly referenced in your project, you can include calls to them in your code.
For a sample implementation, check the [Example](https://github.com/sendgrid/sendgrid-csharp/tree/master/SendGrid/Example) folder.
+Add the following namespaces to use the library:
+```csharp
+using System.Net;
+using System.Net.Mail;
+using SendGridMail;
+using SendGridMail.Transport;
+```
+
#How to: Create an email
Use the static **SendGrid.GetInstance** method to create an email message that is of type **SendGrid**. Once the message is created, you can use **SendGrid** properties and methods to set values including the email sender, the email recipient, and the subject and body of the email.