diff options
author | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-01-13 11:12:32 -0800 |
---|---|---|
committer | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-01-13 11:12:32 -0800 |
commit | 819ba92371818d3b691ce03a9606eb01fa57480c (patch) | |
tree | a13727bc7372e3db5eeb1a2b20a185900f952722 /SendGrid/Example/SMTPAPI.cs | |
parent | 936101e040074244fe6be9d5a48832a657405424 (diff) | |
download | sendgrid-csharp-819ba92371818d3b691ce03a9606eb01fa57480c.zip sendgrid-csharp-819ba92371818d3b691ce03a9606eb01fa57480c.tar.gz sendgrid-csharp-819ba92371818d3b691ce03a9606eb01fa57480c.tar.bz2 |
update attachments, fixed filter formats, added some documentation, made constructors initializable only by factory functions
Diffstat (limited to 'SendGrid/Example/SMTPAPI.cs')
-rwxr-xr-x | SendGrid/Example/SMTPAPI.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SendGrid/Example/SMTPAPI.cs b/SendGrid/Example/SMTPAPI.cs index 6ed10cb..2ee8927 100755 --- a/SendGrid/Example/SMTPAPI.cs +++ b/SendGrid/Example/SMTPAPI.cs @@ -25,7 +25,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
foreach(string recipient in _to)
@@ -52,7 +52,7 @@ namespace Example public void SimplePlaintextEmail()
{
//create a new message object
- var message = new SendGrid(new Header());
+ var message = SendGrid.GenerateInstance();
//set the message recipients
foreach(string recipient in _to)
@@ -80,7 +80,7 @@ namespace Example {
var header = new Header();
//create a new message object
- var message = new SendGrid(header);
+ var message = SendGrid.GenerateInstance();
//set the message recipients
foreach (string recipient in _to)
@@ -114,7 +114,7 @@ namespace Example {
var header = new Header();
//create a new message object
- var message = new SendGrid(header);
+ var message = SendGrid.GenerateInstance();
//set the message recipients
foreach (string recipient in _to)
|