diff options
author | CJ Buchmann <cj.buchmann@sendgrid.com> | 2012-01-13 11:42:23 -0800 |
---|---|---|
committer | CJ Buchmann <cj.buchmann@sendgrid.com> | 2012-01-13 11:42:23 -0800 |
commit | 37cee6093cb660ad3a077d4d3f781fca3d02e1b5 (patch) | |
tree | b1ba83354b7ae71123e16418024a1c5898ff1d31 /SendGrid/Example/RESTAPI.cs | |
parent | f9a9711650d1990d10bb24b1591a274677bf88f2 (diff) | |
parent | a6956d4a0014845b14f1909cb8a01fdc832d6cd3 (diff) | |
download | sendgrid-csharp-37cee6093cb660ad3a077d4d3f781fca3d02e1b5.zip sendgrid-csharp-37cee6093cb660ad3a077d4d3f781fca3d02e1b5.tar.gz sendgrid-csharp-37cee6093cb660ad3a077d4d3f781fca3d02e1b5.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/RESTAPI.cs')
-rwxr-xr-x | SendGrid/Example/RESTAPI.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SendGrid/Example/RESTAPI.cs b/SendGrid/Example/RESTAPI.cs index 28e9787..73dbf04 100755 --- a/SendGrid/Example/RESTAPI.cs +++ b/SendGrid/Example/RESTAPI.cs @@ -30,7 +30,7 @@ namespace Example public void SimpleHTMLEmail()
{
//create a new message object
- var message = new SendGrid(new Header());
+ var message = SendGrid.GenerateInstance();
//set the message recipients
@@ -86,7 +86,7 @@ namespace Example //Utils.PrepareAttachments();
//create an instance of the SMTP transport mechanism
- var restInstance = new REST(new NetworkCredential(_username, _password));
+ var restInstance = REST.GetInstance(new NetworkCredential(_username, _password));
//send the mail
restInstance.Deliver(message);
|