Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure we set the content disposition on attachments for SendGrid #336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Senders/FluentEmail.SendGrid/SendGridSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ private async Task<SendResponse> SendViaSendGrid(SendGridMessage mailMessage, Ca
{
Content = await GetAttachmentBase64String(attachment.Data),
Filename = attachment.Filename,
Type = attachment.ContentType
Type = attachment.ContentType,
Disposition = attachment.IsInline
? "inline"
: "attachment",
ContentId = attachment.ContentId
};

private async Task<string> GetAttachmentBase64String(Stream stream)
Expand Down