Skip to content

Commit ca53d9e

Browse files
fixing bug with example. should use synchronous method
1 parent 69477d2 commit ca53d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public SendResponse RunExample()
2222
message.ReplyTo.Email = "replyto@example.com";
2323
message.To.Add("recipient1@example.com");
2424

25-
var attachment = message.Attachments.AddAsync("bus.png", MimeType.PNG, @".\examples\img\bus.png").Result;
25+
var attachment = message.Attachments.Add("bus.png", MimeType.PNG, @".\examples\img\bus.png");
2626

2727
attachment.CustomHeaders.Add(new CustomHeader("Color", "Orange"));
2828
attachment.CustomHeaders.Add(new CustomHeader("Place", "Beach"));

0 commit comments

Comments
 (0)