diff options
author | Brandon West <brawest@gmail.com> | 2013-01-10 13:40:31 -0700 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2013-01-10 13:40:31 -0700 |
commit | f0369817159f954f4e83e5fef1cd8ed057aa3904 (patch) | |
tree | 939d06bc5248781d60b10dea903b90e6d2a0f1b7 /SendGrid/Example/Program.cs | |
parent | 2e51a34035a05ec7df8f05fca5a8787787a78bc6 (diff) | |
download | sendgrid-csharp-f0369817159f954f4e83e5fef1cd8ed057aa3904.zip sendgrid-csharp-f0369817159f954f4e83e5fef1cd8ed057aa3904.tar.gz sendgrid-csharp-f0369817159f954f4e83e5fef1cd8ed057aa3904.tar.bz2 |
change web.CheckForErrors to handle response from mail.send
Diffstat (limited to 'SendGrid/Example/Program.cs')
-rwxr-xr-x | SendGrid/Example/Program.cs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs index 1debf2e..7b83b38 100755 --- a/SendGrid/Example/Program.cs +++ b/SendGrid/Example/Program.cs @@ -15,21 +15,18 @@ namespace Example // 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 username = "brandonmwest";
+ var password = "!!s3ndgr1d";
+ var from = "brandon.west@sendgrid.com";
var to = new List<String>
{
- "foo@domain.com",
- "raz@domain.com"
+ "@gmail.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();
|