diff options
author | CJ Buchmann <cj.buchmann@sendgrid.com> | 2012-01-11 16:42:12 -0800 |
---|---|---|
committer | CJ Buchmann <cj.buchmann@sendgrid.com> | 2012-01-11 16:42:12 -0800 |
commit | b4db907a4c69a483b00aba9ef0b624c9e5d58c86 (patch) | |
tree | d153950f8b39d78f132328abc49321b1a02c665d /SendGrid/Example/Program.cs | |
parent | bc1cae41ed4903bcaa4ae76f53a4289863d6daff (diff) | |
download | sendgrid-csharp-b4db907a4c69a483b00aba9ef0b624c9e5d58c86.zip sendgrid-csharp-b4db907a4c69a483b00aba9ef0b624c9e5d58c86.tar.gz sendgrid-csharp-b4db907a4c69a483b00aba9ef0b624c9e5d58c86.tar.bz2 |
added unit tests for SendGrid Enable/Disable filters
Diffstat (limited to 'SendGrid/Example/Program.cs')
-rwxr-xr-x | SendGrid/Example/Program.cs | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs index 3925174..5e5909c 100755 --- a/SendGrid/Example/Program.cs +++ b/SendGrid/Example/Program.cs @@ -13,15 +13,20 @@ namespace Example {
static void Main(string[] args)
{
- var credentials = new NetworkCredential("cjbuchmann", "Gadget_15");
- var transport = SMTP.GenerateInstance(credentials);
var header = new Header();
- var message = new SendGrid(header);
- message.AddTo("tyler.bischel@sendgrid.com");
- message.From = new MailAddress("eric@sendgrid.com");
- message.Text = "This is a test message.";
- message.Subject = "hazaah!";
- transport.Deliver(message);
+ var sendgrid = new SendGrid(header);
+
+ Console.WriteLine("testing");
+
+ var text = "My Text <%%>";
+ var html = "<body><p>hello,</p></body>";
+ var replace = "John";
+ var url = "http://www.example.com";
+ var landing = "this_landing";
+ sendgrid.EnableUnsubscribe(text, html, replace, url, landing);
+
+ Console.WriteLine(header.AsJson());
+
}
}
}
|