diff options
author | Brandon West <brawest@gmail.com> | 2013-07-29 09:22:02 -0600 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2013-07-29 09:32:49 -0600 |
commit | 072cd3ebf52417a275b5180cd1e6841ca4aa86df (patch) | |
tree | 1c8c5550dab4b2c6fd62ae9698c5ecaaa2d8f5a0 | |
parent | 6d06289c6ce6ce4dfdbd9e65fbc9216c465b0b7b (diff) | |
download | sendgrid-csharp-072cd3ebf52417a275b5180cd1e6841ca4aa86df.zip sendgrid-csharp-072cd3ebf52417a275b5180cd1e6841ca4aa86df.tar.gz sendgrid-csharp-072cd3ebf52417a275b5180cd1e6841ca4aa86df.tar.bz2 |
reversion to 1.2.0 since not a breaking change
-rwxr-xr-x | SendGrid/Example/Program.cs | 75 | ||||
-rw-r--r--[-rwxr-xr-x] | SendGrid/Example/Properties/AssemblyInfo.cs | 4 | ||||
-rw-r--r-- | SendGrid/SendGridMail/Properties/AssemblyInfo.cs | 4 | ||||
-rw-r--r-- | SendGrid/SendGridMail/nuget/Mail.nuspec | 39 | ||||
-rw-r--r-- | SendGrid/SendGridMail/nuget/SendGrid.1.2.0.nupkg | bin | 0 -> 15009 bytes | |||
-rw-r--r-- | SendGrid/SendGridMail/nuget/SendGrid.2.0.3.nupkg | bin | 15000 -> 0 bytes | |||
-rw-r--r-- | SendGrid/SendGridMail/nuget/lib/SendGridMail.dll | bin | 28160 -> 28160 bytes | |||
-rw-r--r--[-rwxr-xr-x] | SendGrid/Tests/Properties/AssemblyInfo.cs | 4 |
8 files changed, 62 insertions, 64 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs index 583f304..4c323cf 100755 --- a/SendGrid/Example/Program.cs +++ b/SendGrid/Example/Program.cs @@ -1,40 +1,35 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net; -using System.Net.Mail; -using System.Text; -using SendGridMail; -using SendGridMail.Transport; - -namespace Example -{ - class Program - { - // this code is used for the SMTPAPI examples - static void Main(string[] args) - { - var username = "sgrid_username"; - var password = "sgrid_password"; - var from = "bar@domain.com"; - var to = new List<String> - { - "foo@domain.com", - "raz@domain.com" - }; - - //initialize the SMTPAPI example class - var smtpapi = new SMTPAPI(username, password, from, to); - var restapi = new WEBAPI(username, password, from, to); - - //use this section to test out our Web and SMTP examples! - smtpapi.SimpleHTMLEmail(); - restapi.SimpleHTMLEmail(); - - Console.WriteLine("Done!"); - Console.ReadLine(); - } - - } -} +using System;
+using System.Net;
+using System.Net.Mail;
+using SendGridMail;
+using SendGridMail.Transport;
+
+namespace Example
+{
+ class Program
+ {
+ // this code is used for the SMTPAPI examples
+ static void Main(string[] args)
+ {
+ // Create the email object first, then add the properties.
+ SendGrid myMessage = SendGrid.GetInstance();
+ myMessage.AddTo("anna@example.com");
+ myMessage.From = new MailAddress("john@example.com", "John Smith");
+ myMessage.Subject = "Testing the SendGrid Library";
+ myMessage.Text = "Hello World!";
+
+ // Create credentials, specifying your user name and password.
+ var credentials = new NetworkCredential("username", "password");
+
+ // Create a Web transport for sending email.
+ var transportWeb = Web.GetInstance(credentials);
+
+ // Send the email.
+ transportWeb.Deliver(myMessage);
+
+ Console.WriteLine("Done!");
+ Console.ReadLine();
+ }
+
+ }
+}
diff --git a/SendGrid/Example/Properties/AssemblyInfo.cs b/SendGrid/Example/Properties/AssemblyInfo.cs index e7c46f8..06a0907 100755..100644 --- a/SendGrid/Example/Properties/AssemblyInfo.cs +++ b/SendGrid/Example/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.2.0")]
+[assembly: AssemblyFileVersion("1.2.0")]
diff --git a/SendGrid/SendGridMail/Properties/AssemblyInfo.cs b/SendGrid/SendGridMail/Properties/AssemblyInfo.cs index 2b0670f..32cc1dd 100644 --- a/SendGrid/SendGridMail/Properties/AssemblyInfo.cs +++ b/SendGrid/SendGridMail/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.0.3")]
-[assembly: AssemblyFileVersion("2.0.3")]
+[assembly: AssemblyVersion("1.2.0")]
+[assembly: AssemblyFileVersion("1.2.0")]
diff --git a/SendGrid/SendGridMail/nuget/Mail.nuspec b/SendGrid/SendGridMail/nuget/Mail.nuspec index 431f21d..f318478 100644 --- a/SendGrid/SendGridMail/nuget/Mail.nuspec +++ b/SendGrid/SendGridMail/nuget/Mail.nuspec @@ -1,18 +1,21 @@ -<?xml version="1.0" encoding="utf-8"?>
-<package >
- <metadata>
- <id>SendGrid</id>
- <version>2.0.1</version>
- <title>SendGrid</title>
- <authors>CJ Buchmann, Tyler Bischel, Eric Becking, Brandon West</authors>
- <owners>SendGrid</owners>
- <requireLicenseAcceptance>false</requireLicenseAcceptance>
- <description>Basic C# client library and examples for using SendGrid API's to send mail. Github repo located at : https://github.com/sendgrid/sendgrid-csharp</description>
- <releaseNotes>Migrated to .NET 4.5 and System.Net.Http</releaseNotes>
- <copyright>Copyright 2013</copyright>
- <tags>SendGrid Email Mail Microsoft Azure</tags>
- <dependencies>
- <dependency id="Microsoft.Net.Http" version="2.2.13" />
- </dependencies>
- </metadata>
-</package>
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
+ <metadata>
+ <id>SendGrid</id>
+ <version>1.2.0</version>
+ <title>SendGrid</title>
+ <authors>CJ Buchmann,Tyler Bischel,Eric Becking,Brandon West</authors>
+ <owners>SendGrid</owners>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>Basic C# client library and examples for using SendGrid API's to send mail. Github repo located at : https://github.com/sendgrid/sendgrid-csharp</description>
+ <releaseNotes>Changed HTTP transport to use System.Net.Http</releaseNotes>
+ <copyright>Copyright 2013</copyright>
+ <tags>SendGrid Email Mail Microsoft Azure</tags>
+ <dependencies>
+ <dependency id="Microsoft.Net.Http" version="2.2.13" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\SendGridMail.dll" target="lib\SendGridMail.dll" />
+ </files>
+</package>
\ No newline at end of file diff --git a/SendGrid/SendGridMail/nuget/SendGrid.1.2.0.nupkg b/SendGrid/SendGridMail/nuget/SendGrid.1.2.0.nupkg Binary files differnew file mode 100644 index 0000000..bedbca7 --- /dev/null +++ b/SendGrid/SendGridMail/nuget/SendGrid.1.2.0.nupkg diff --git a/SendGrid/SendGridMail/nuget/SendGrid.2.0.3.nupkg b/SendGrid/SendGridMail/nuget/SendGrid.2.0.3.nupkg Binary files differdeleted file mode 100644 index fc61693..0000000 --- a/SendGrid/SendGridMail/nuget/SendGrid.2.0.3.nupkg +++ /dev/null diff --git a/SendGrid/SendGridMail/nuget/lib/SendGridMail.dll b/SendGrid/SendGridMail/nuget/lib/SendGridMail.dll Binary files differindex c72d46c..63f02e2 100644 --- a/SendGrid/SendGridMail/nuget/lib/SendGridMail.dll +++ b/SendGrid/SendGridMail/nuget/lib/SendGridMail.dll diff --git a/SendGrid/Tests/Properties/AssemblyInfo.cs b/SendGrid/Tests/Properties/AssemblyInfo.cs index e1c3089..4e26c95 100755..100644 --- a/SendGrid/Tests/Properties/AssemblyInfo.cs +++ b/SendGrid/Tests/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.2.0")]
+[assembly: AssemblyFileVersion("1.2.0")]
|