diff options
author | brandonmwest <brawest@gmail.com> | 2013-01-17 16:31:33 -0700 |
---|---|---|
committer | brandonmwest <brawest@gmail.com> | 2013-01-17 16:31:33 -0700 |
commit | 51c7a094bda3a1bb94231278084b8a3066f270ce (patch) | |
tree | cecd076664d8396b8ae2420c27a46952c1542228 | |
parent | 7ed2ce8a1a20bb0334b2427c68800d3ced20028e (diff) | |
download | sendgrid-csharp-51c7a094bda3a1bb94231278084b8a3066f270ce.zip sendgrid-csharp-51c7a094bda3a1bb94231278084b8a3066f270ce.tar.gz sendgrid-csharp-51c7a094bda3a1bb94231278084b8a3066f270ce.tar.bz2 |
Update README.md
-rwxr-xr-x | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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. |