Version
v5.12.28
Environment
Docker
Checklist
- Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? Haven’t tried
- Have you searched existing issues? yes
- Have you inspected the logs in storage/logs/laravel.log for any errors? yes
Describe the bug
Currently Invoice Ninja adds pdf attachments as MIME type application/octet-stream. I have an issue specifically with the Scaleway TEM provider as they enforce a MIME policy which prohibits octet-stream. Couldn’t this be set as application/pdf? It would be fitting in regards to the actual content.
Steps To Reproduce
- Try to send invoice to mail provider that doesn’t support application/octet-stream
- fails
Expected Behavior
As the attachment is a pdf file MIME type should be application/pdf
Additional context
Screenshots
Logs
- root:“Expected response code “250” but got code “501”, with message “501 5.6.0 ‘application/octet-stream’ is not allowed. Please refer to https://mimetypes.tem.scaleway.com for explicit MIME types list.”.”