case 4761 - emailed report PDFs have the content type application/pdf

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 17:32:19 -07:00
parent 36fe2eaf53
commit 413af08918
3 changed files with 4 additions and 2 deletions

View File

@@ -48,7 +48,8 @@ namespace AyaNova.Util
if (!string.IsNullOrWhiteSpace(attachPDFPath))
{
var attachment = new MimePart("application/pdf", "pdf")
//case 4761: media type and subtype, was ("application/pdf", "pdf") which made the content type application/pdf/pdf
var attachment = new MimePart("application", "pdf")
{
Content = new MimeContent(File.OpenRead(attachPDFPath), ContentEncoding.Default),
ContentDisposition = new ContentDisposition(ContentDisposition.Attachment),