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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user