summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SendGrid/Example/Program.cs')
-rw-r--r--SendGrid/Example/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs
index 7fb0960..275f6b9 100644
--- a/SendGrid/Example/Program.cs
+++ b/SendGrid/Example/Program.cs
@@ -11,7 +11,7 @@ namespace Example
private static void Main()
{
// Create the email object first, then add the properties.
- var myMessage = SendGrid.GetInstance();
+ var myMessage = new SendGrid();
myMessage.AddTo("anna@example.com");
myMessage.From = new MailAddress("john@example.com", "John Smith");
myMessage.Subject = "Testing the SendGrid Library";
@@ -21,7 +21,7 @@ namespace Example
var credentials = new NetworkCredential("username", "password");
// Create a Web transport for sending email.
- var transportWeb = Web.GetInstance(credentials);
+ var transportWeb = new Web(credentials);
// Send the email.
if (transportWeb != null)