diff options
Diffstat (limited to 'SendGrid/Example/Program.cs')
-rw-r--r-- | SendGrid/Example/Program.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs index 275f6b9..9aaa8ec 100644 --- a/SendGrid/Example/Program.cs +++ b/SendGrid/Example/Program.cs @@ -1,7 +1,7 @@ using System;
using System.Net;
using System.Net.Mail;
-using SendGridMail;
+using SendGrid;
namespace Example
{
@@ -11,10 +11,10 @@ namespace Example private static void Main()
{
// Create the email object first, then add the properties.
- var myMessage = new SendGrid();
+ var myMessage = new SendGridMessage();
myMessage.AddTo("anna@example.com");
myMessage.From = new MailAddress("john@example.com", "John Smith");
- myMessage.Subject = "Testing the SendGrid Library";
+ myMessage.Subject = "Testing the SendGridMessage Library";
myMessage.Text = "Hello World!";
// Create credentials, specifying your user name and password.
|