Setup
- Version: v5.11.61
- Environment: Other - Rocky 9 VM, nginx, npm, MySQL
Interface
- Flutter:
- React:
- Both: [
]
Checklist
- Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja?
-
Ehh, I haven’t tried, I don’t think I could because of needing to configure SMTP first.
-
- Have you searched existing issues?
-
I did, I tried the following searches on this repo’s Issues page:
-
is:issue state:open utf-8 on attached documents
-
is:issue state:open characters attached documents
-
is:issue state:open characters email documents
-
-
- Have you reported this to Slack/forum before posting?
-
Here I am!
-
- Have you inspected the logs in storage/logs/laravel.log for any errors?
-
I wasn’t able to identify anything related to this issue.
-
Describe the bug
When configuring your emails to be sent with the Invoice attached as well as any Company Documents to be attached via Settings > Advanced Settings > Email Settings > ‘Attach PDF’ and ‘Attach Documents’, it appears that unexpected characters get appended to the beginning of the document’s file name.
Here is a screenshot from my ProtonMail client clearly showing the characters utf-8"
being prefixed to my file name:
More specifically, I noticed this when I created 2 recurring invoices today that both dispatched out emails to my clients with this utf-8"
string prefixed.
This is the exact file I uploaded to my Settings > Company Details:
This is how it appears under my Settings > Company Details:
Steps To Reproduce
- Configure your SMTP configuration under Email Settings section in Settings.
- Attach a document to your Company Details section in Settings.
- Enable ‘Attach Documents’ under Email Settings section in Settings.
- Create a Recurring Invoice for a Client with a Contact that has an email address set.
- Force the Recurring Invoice to ‘Send Now’.
- Check the configured SMTP email account’s mailbox for the unexpected characters being appended to the attached Company Document’s filename.
Expected Behavior
The attached document filename should reflect exactly what the filename was at the time of uploading it to the Company Documents.
Additional context
N/A
Screenshots
Provided in bug description.
Logs
There is nothing relevant to this issue that I could find in the laravel.log.