summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example/Program.cs
diff options
context:
space:
mode:
authorBrandon West <brawest@gmail.com>2014-05-21 16:29:53 -0600
committerBrandon West <brawest@gmail.com>2014-05-21 16:29:53 -0600
commitc48471c02bc8e9d47e4735fda5e3244636b118ef (patch)
treeeff78a2f0a5c7243880855a8dd210279341f425c /SendGrid/Example/Program.cs
parent20c3fb41794d39286965f515ab93c4d445380050 (diff)
parent47a7cc0bc1b4f5564b9768e32c71f9263da5e74b (diff)
downloadsendgrid-csharp-c48471c02bc8e9d47e4735fda5e3244636b118ef.zip
sendgrid-csharp-c48471c02bc8e9d47e4735fda5e3244636b118ef.tar.gz
sendgrid-csharp-c48471c02bc8e9d47e4735fda5e3244636b118ef.tar.bz2
Merge pull request #57 from paroos/master
Improve handling with an IoC container
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)