summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example/Program.cs
diff options
context:
space:
mode:
authorCJ Buchmann <cj.buchmann@sendgrid.com>2012-01-13 16:20:58 -0800
committerCJ Buchmann <cj.buchmann@sendgrid.com>2012-01-13 16:20:58 -0800
commit0bb4eb03b1f478df60c1f14da63d42aba8281efe (patch)
tree187261ef4aed777a08be8388685d9cd5214c92dd /SendGrid/Example/Program.cs
parent39d5fb81bec319810565a8b7cf0cbd2e9e985c66 (diff)
downloadsendgrid-csharp-0bb4eb03b1f478df60c1f14da63d42aba8281efe.zip
sendgrid-csharp-0bb4eb03b1f478df60c1f14da63d42aba8281efe.tar.gz
sendgrid-csharp-0bb4eb03b1f478df60c1f14da63d42aba8281efe.tar.bz2
committing before tyler breaks my stuff, with his not good enough stuff
Diffstat (limited to 'SendGrid/Example/Program.cs')
-rwxr-xr-xSendGrid/Example/Program.cs18
1 files changed, 10 insertions, 8 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs
index 0bdaacd..4709470 100755
--- a/SendGrid/Example/Program.cs
+++ b/SendGrid/Example/Program.cs
@@ -11,7 +11,7 @@ namespace Example
{
class Program
{
- static void Main(String[] args)
+ /*static void Main(String[] args)
{
var restInstance = REST.GetInstance(new NetworkCredential("cjbuchmann", "Gadget_15"));
@@ -29,13 +29,13 @@ namespace Example
Console.WriteLine("Message Sent");
Console.WriteLine("DONE!");
- }
+ }*/
// this code is used for the SMTPAPI examples
- /*static void Main(string[] args)
+ static void Main(string[] args)
{
- var username = "sgrid_username";
- var password = "sgrid_email";
+ var username = "cjbuchmann";
+ var password = "gadget15";
var from = "cj.buchmann@sendgrid.com";
var to = new List<String>
{
@@ -54,7 +54,6 @@ namespace Example
//initialize the SMTPAPI example class
var smtpapi = new SMTPAPI(username, password, from, to);
- var restpapi = new RESTAPI(username, password, from, to, null, null);
//send a simple HTML encoded email.
//smtpapi.SimpleHTMLEmail();
@@ -68,7 +67,10 @@ namespace Example
//send an open tracking enabled email.
//smtpapi.EnableOpenTrackingEmail();
- restpapi.SimpleHTMLEmail();
- }*/
+ //send an open tracking enabled email.
+ smtpapi.EnableClickTrackingEmail();
+
+ Console.ReadLine();
+ }
}
}