summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon West <brawest@gmail.com>2013-07-27 14:43:46 -0600
committerBrandon West <brawest@gmail.com>2013-07-27 14:43:46 -0600
commit2a1b360b89ac07fab5e4a377f380bd563dfa5f7e (patch)
tree46975699f118c3d5199fe120c7d291a325917a2d
parent7eea71627d3eb892258632dd472472fee35e642e (diff)
downloadsendgrid-csharp-2a1b360b89ac07fab5e4a377f380bd563dfa5f7e.zip
sendgrid-csharp-2a1b360b89ac07fab5e4a377f380bd563dfa5f7e.tar.gz
sendgrid-csharp-2a1b360b89ac07fab5e4a377f380bd563dfa5f7e.tar.bz2
fix bad examples in readme
-rwxr-xr-xREADME.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 239edb4..dfd0d52 100755
--- a/README.md
+++ b/README.md
@@ -85,7 +85,7 @@ transportSMTP.Deliver(myMessage);
##Web API
```csharp
// Create the email object first, then add the properties.
-SendGrid myMessage = SendGrid.GenerateInstance();
+SendGrid myMessage = SendGrid.GetInstance();
myMessage.AddTo("anna@example.com");
myMessage.From = new MailAddress("john@example.com", "John Smith");
myMessage.Subject = "Testing the SendGrid Library";
@@ -106,7 +106,7 @@ transportWeb.Deliver(myMessage);
Attachments can be added to a message by calling the **AddAttachment** method and specifying the name and path of the file you want to attach, or by passing a stream. You can include multiple attachments by calling this method once for each file you wish to attach. The following example demonstrates adding an attachment to a message:
```csharp
-SendGrid myMessage = SendGrid.GenerateInstance();
+SendGrid myMessage = SendGrid.GetInstance();
myMessage.AddTo("anna@example.com");
myMessage.From = new MailAddress("john@example.com", "John Smith");
myMessage.Subject = "Testing the SendGrid Library";