Skip to content

Commit 4f161f8

Browse files
adding Metadata and Tags to complex examples
1 parent 255f705 commit 4f161f8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Example Projects/dotNetCoreExample/Examples/Basic/BasicComplexExample.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public SendResponse RunExample()
4747
message.MessageId = "MyMsgId";
4848

4949
message.CustomHeaders.Add("x-mycustomheader", "I am a message header");
50+
51+
message.Metadata.Add("x-mycustommetadata", "I am custom metadata");
52+
53+
message.Tags.Add("Basic-Complex-Example");
5054

5155
var attachment = message.Attachments.Add("bus.png", MimeType.PNG, @".\examples\img\bus.png");
5256
attachment.ContentId = "Bus";

Example Projects/dotNetCoreExample/Examples/Bulk/BulkSendComplexExample.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public SendResponse RunExample()
4242
message.ReplyTo.Email = "[email protected]";
4343

4444
message.CustomHeaders.Add(new CustomHeader("testMessageHeader", "I am a message header"));
45+
46+
message.Metadata.Add("x-mycustommetadata", "I am custom metadata");
47+
48+
message.Tags.Add("Basic-Complex-Example");
4549

4650
// Build the Content (Note the %% symbols used to denote the data to be merged)
4751
var html = new StringBuilder();

0 commit comments

Comments
 (0)