diff options
author | CJ Buchmann <cj.buchmann@sendgrid.com> | 2012-01-13 11:28:20 -0800 |
---|---|---|
committer | CJ Buchmann <cj.buchmann@sendgrid.com> | 2012-01-13 11:28:20 -0800 |
commit | 6904122e6ea5e9e0932b83871ed48d39e2b09e99 (patch) | |
tree | 8605443e26bc501d8464fac1025ac4d810b9ad50 /SendGrid/SendGridMail/Transport/REST.cs | |
parent | 4f0b8b80306b3eab0d4250a6fb48cb2e57715395 (diff) | |
download | sendgrid-csharp-6904122e6ea5e9e0932b83871ed48d39e2b09e99.zip sendgrid-csharp-6904122e6ea5e9e0932b83871ed48d39e2b09e99.tar.gz sendgrid-csharp-6904122e6ea5e9e0932b83871ed48d39e2b09e99.tar.bz2 |
Got code to working state to deliver to Microsoft
Diffstat (limited to 'SendGrid/SendGridMail/Transport/REST.cs')
-rwxr-xr-x | SendGrid/SendGridMail/Transport/REST.cs | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/SendGrid/SendGridMail/Transport/REST.cs b/SendGrid/SendGridMail/Transport/REST.cs index 13abfed..0b1876d 100755 --- a/SendGrid/SendGridMail/Transport/REST.cs +++ b/SendGrid/SendGridMail/Transport/REST.cs @@ -77,26 +77,11 @@ namespace SendGridMail.Transport Console.WriteLine(restCommand.AbsoluteUri);
//if we have message attachments, we'll send them via the WebFileUpload
- if(message.Attachments.Length > 0)
+ /*if(message.Attachments.Length > 0)
{
Console.WriteLine("Initializing the File Upload Library");
-
- //Console.WriteLine("file is "+message.Attachments.First());
- //Console.WriteLine("DONE");
-
- /*var collection = new NameValueCollection();
- collection.Add("api_user", "cjbuchmann");
- collection.Add("api_key", "Gadget_15");
- collection.Add("from", "cj.buchmann@sendgrid.com");
- collection.Add("to", "cj.buchmann@sendgrid.com");
- collection.Add("subject", "hello world test");
- collection.Add("text", "hello world plain text");*/
new WebFileUpload(request).testNoAttach(message.Attachments.First());
- //string outdata = WebFileUpload.UploadFileEx(@"D:\att_proj\21.jpg", "https://sendgrid.com/api/mail.send.xml", "files[file1.jpg]", "", collection);
- }
-
- Console.WriteLine(restCommand.AbsoluteUri);
- Console.WriteLine("DONE!");
+ }*/
var response = (HttpWebResponse)request.GetResponse();
|