summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example
diff options
context:
space:
mode:
authorBrandon West <brawest@gmail.com>2013-07-29 09:00:52 -0600
committerBrandon West <brawest@gmail.com>2013-07-29 09:30:54 -0600
commit6d06289c6ce6ce4dfdbd9e65fbc9216c465b0b7b (patch)
tree0e9dae3bc69304c93585f62286f3c70ad64083df /SendGrid/Example
parent3607d7598e4a47801ac108f9288a5cf74412fd3a (diff)
downloadsendgrid-csharp-6d06289c6ce6ce4dfdbd9e65fbc9216c465b0b7b.zip
sendgrid-csharp-6d06289c6ce6ce4dfdbd9e65fbc9216c465b0b7b.tar.gz
sendgrid-csharp-6d06289c6ce6ce4dfdbd9e65fbc9216c465b0b7b.tar.bz2
example sending code
Diffstat (limited to 'SendGrid/Example')
-rwxr-xr-xSendGrid/Example/Program.cs80
1 files changed, 40 insertions, 40 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs
index 29b02e6..583f304 100755
--- a/SendGrid/Example/Program.cs
+++ b/SendGrid/Example/Program.cs
@@ -1,40 +1,40 @@
-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.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();
+ }
+
+ }
+}