summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example/Program.cs
diff options
context:
space:
mode:
authorCJ Buchmann <cj.buchmann@sendgrid.com>2012-01-13 11:42:23 -0800
committerCJ Buchmann <cj.buchmann@sendgrid.com>2012-01-13 11:42:23 -0800
commit3fbe9e8fee4fa45a4a0e2620afdd391f7bba5c56 (patch)
tree83feb3fa4575585941aeda43cc5557d99ce9bf38 /SendGrid/Example/Program.cs
parent6904122e6ea5e9e0932b83871ed48d39e2b09e99 (diff)
parente3549a7191897313ba7b05c8e76be640a09dbe4e (diff)
downloadsendgrid-csharp-3fbe9e8fee4fa45a4a0e2620afdd391f7bba5c56.zip
sendgrid-csharp-3fbe9e8fee4fa45a4a0e2620afdd391f7bba5c56.tar.gz
sendgrid-csharp-3fbe9e8fee4fa45a4a0e2620afdd391f7bba5c56.tar.bz2
Merge branch 'us1882' of github.com:sendgrid/sendgrid-csharp into us1882-inbetween
Conflicts: SendGrid/SendGridMail/Transport/REST.cs
Diffstat (limited to 'SendGrid/Example/Program.cs')
-rwxr-xr-xSendGrid/Example/Program.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs
index 7beff35..1953312 100755
--- a/SendGrid/Example/Program.cs
+++ b/SendGrid/Example/Program.cs
@@ -13,10 +13,10 @@ namespace Example
{
static void Main(String[] args)
{
- var restInstance = new REST(new NetworkCredential("cjbuchmann", "Gadget_15"));
+ var restInstance = REST.GetInstance(new NetworkCredential("sgrid_username", "sgrid_email"));
//create a new message object
- var message = new SendGrid(new Header());
+ var message = SendGrid.GenerateInstance();
message.AddTo("cj.buchmann@sendgrid.com");
message.From = new MailAddress("cj.buchmann@sendgrid.com");
@@ -30,10 +30,11 @@ namespace Example
Console.WriteLine("DONE!");
}
+ // this code is used for the SMTPAPI examples
/*static void Main(string[] args)
{
- var username = "cjbuchmann";
- var password = "Gadget_15";
+ var username = "sgrid_username";
+ var password = "sgrid_email";
var from = "cj.buchmann@sendgrid.com";
var to = new List<String>
{