diff options
author | Brandon West <brawest@gmail.com> | 2013-07-27 14:43:46 -0600 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2013-07-27 14:43:46 -0600 |
commit | 607fe1bed6dc9cbb5f6c331d7f621c2e850b4e57 (patch) | |
tree | 2fe8b96caa2cfe53d8e27a37d66ae3f1645af67a | |
parent | 4b69e64d1a0a9027fe9b74a026b1135e002907ab (diff) | |
download | sendgrid-csharp-607fe1bed6dc9cbb5f6c331d7f621c2e850b4e57.zip sendgrid-csharp-607fe1bed6dc9cbb5f6c331d7f621c2e850b4e57.tar.gz sendgrid-csharp-607fe1bed6dc9cbb5f6c331d7f621c2e850b4e57.tar.bz2 |
fix bad examples in readme
-rwxr-xr-x | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"; |