Skip to content

Commit 4b40f50

Browse files
Add InlineContentId property to EmailAttachment (#67)
1 parent 57aa2aa commit 4b40f50

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/Resend/EmailAttachment.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ public class EmailAttachment
4242
[JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )]
4343
public string? ContentType { get; set; }
4444

45+
/// <summary>
46+
/// Inline content identifier.
47+
/// </summary>
48+
/// <remarks>
49+
/// Value can then be used as reference in HTML body using <code>cid</code>
50+
/// scheme, e.g. <code>&lt;img src="cid:property-value" &gt; /></code>.
51+
/// </remarks>
52+
[JsonPropertyName( "inline_content_id" )]
53+
[JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )]
54+
public string? InlineContentId { get; set; }
55+
4556

4657

4758
/// <summary>

tests/Resend.Tests/ResendClientTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public async Task EmailRetrieve()
5656
Assert.True( resp.Success );
5757
Assert.NotNull( resp.Content );
5858
Assert.Equal( anyId, resp.Content.Id );
59-
Assert.Equal( "[email protected]", resp.Content.From.Email );
59+
Assert.Equal( "[email protected]", resp.Content.From.Email );
6060
Assert.Single( resp.Content.To );
6161
Assert.Null( resp.Content.TextBody );
6262
Assert.NotNull( resp.Content.HtmlBody );

0 commit comments

Comments
 (0)