diff options
author | Brandon West <brawest@gmail.com> | 2013-01-14 11:34:22 -0700 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2013-01-14 11:34:22 -0700 |
commit | 3a948747213aea2adeccacd0c6fa6e66c0437e73 (patch) | |
tree | 47cd36a2fa38681f300a0a7b729d40dbb07c59b7 | |
parent | 6fe8efcba2ec7db9bd8e290d5cf1f45c0ec670b4 (diff) | |
download | sendgrid-csharp-3a948747213aea2adeccacd0c6fa6e66c0437e73.zip sendgrid-csharp-3a948747213aea2adeccacd0c6fa6e66c0437e73.tar.gz sendgrid-csharp-3a948747213aea2adeccacd0c6fa6e66c0437e73.tar.bz2 |
fix build warnings
-rwxr-xr-x | SendGrid/Example/Program.cs | 1 | ||||
-rwxr-xr-x | SendGrid/Example/SMTPAPI.cs | 1 | ||||
-rwxr-xr-x | SendGrid/Example/WEBAPI.cs | 1 | ||||
-rw-r--r-- | SendGrid/SendGridMail/Transport/Web.cs | 5 |
4 files changed, 1 insertions, 7 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs index 1debf2e..29b02e6 100755 --- a/SendGrid/Example/Program.cs +++ b/SendGrid/Example/Program.cs @@ -30,6 +30,7 @@ namespace Example //use this section to test out our Web and SMTP examples!
smtpapi.SimpleHTMLEmail();
+ restapi.SimpleHTMLEmail();
Console.WriteLine("Done!");
Console.ReadLine();
diff --git a/SendGrid/Example/SMTPAPI.cs b/SendGrid/Example/SMTPAPI.cs index d9ab154..28120d3 100755 --- a/SendGrid/Example/SMTPAPI.cs +++ b/SendGrid/Example/SMTPAPI.cs @@ -246,7 +246,6 @@ namespace Example message.From = new MailAddress(_from);
//set the message body
- var timestamp = DateTime.Now.ToString("HH:mm:ss tt");
message.Html = "This is the HTML body";
message.Text = "This is the plain text body";
diff --git a/SendGrid/Example/WEBAPI.cs b/SendGrid/Example/WEBAPI.cs index 985005d..d3f8d4a 100755 --- a/SendGrid/Example/WEBAPI.cs +++ b/SendGrid/Example/WEBAPI.cs @@ -247,7 +247,6 @@ namespace Example message.From = new MailAddress(_from);
//set the message body
- var timestamp = DateTime.Now.ToString("HH:mm:ss tt");
message.Html = "This is the HTML body";
message.Text = "This is the plain text body";
diff --git a/SendGrid/SendGridMail/Transport/Web.cs b/SendGrid/SendGridMail/Transport/Web.cs index 3395bdd..ebb2982 100644 --- a/SendGrid/SendGridMail/Transport/Web.cs +++ b/SendGrid/SendGridMail/Transport/Web.cs @@ -19,8 +19,6 @@ namespace SendGridMail.Transport public const String XmlFormat = "xml"; private readonly NetworkCredential _credentials; - private readonly String _restEndpoint; - private readonly String _format; #endregion /// <summary> @@ -42,9 +40,6 @@ namespace SendGridMail.Transport internal Web(NetworkCredential credentials, String url = Endpoint) { _credentials = credentials; - - _format = XmlFormat; - _restEndpoint = url + "." + _format; } /// <summary> |