summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SendGrid/Example/Program.cs')
-rw-r--r--SendGrid/Example/Program.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs
index 7fb0960..9a088ac 100644
--- a/SendGrid/Example/Program.cs
+++ b/SendGrid/Example/Program.cs
@@ -30,5 +30,16 @@ namespace Example
Console.WriteLine("Done!");
Console.ReadLine();
}
+
+ private static SendGrid UseMailBuilder()
+ {
+ // Fluently create the mail builder, add the properties, then build the email object
+ return MailBuilder.Create()
+ .To("anna@example.com")
+ .From("john@example.com", "John Smith")
+ .Subject("Testing the SendGrid Library")
+ .Text("Hello World!")
+ .Build();
+ }
}
} \ No newline at end of file