Mailjet: Prevent empty attachment filename

Mailjet requires all attachments/inlines have a non-empty Filename field.
Substitute `"attachment"` for missing filenames.

Fixes #407.
This commit is contained in:
Mike Edmunds
2024-12-10 12:01:17 -08:00
parent 45848440b3
commit c7f7428b7a
5 changed files with 31 additions and 7 deletions

View File

@@ -144,6 +144,15 @@ Limitations and quirks
:ref:`esp-send-status`, because Mailjet's other (statistics, event tracking)
APIs don't yet support MessageUUID.
**Attachments require filenames**
Mailjet requires that all attachments and inline images have filenames. If you
don't supply a filename, Anymail will use ``"attachment"`` as the filename.
.. versionchanged:: 13.0
Earlier Anymail versions would default to an empty string, resulting in
a Mailjet API error.
**Older limitations**
.. versionchanged:: 6.0