Resend: no attachments with batch sending

Sometime earlier today, Resend started issuing API errors when sending attachments
with batch send. (Apparently the feature has never been supported, and attachments
were just ignored in the batch endpoint.)

Add a note to the docs, and update the Resend integration test.
This commit is contained in:
Mike Edmunds
2024-11-21 18:25:09 -08:00
parent a025ae9543
commit 79aec15784
2 changed files with 8 additions and 1 deletions

View File

@@ -189,6 +189,12 @@ anyway---see :ref:`unsupported-features`.
.. versionchanged:: 12.0
Resend now supports :attr:`~anymail.message.AnymailMessage.send_at`.
**No attachments with batch sending**
Resend does not currently support attachments when using
:ref:`batch sending <resend-templates>`. Trying to send an attachment
while using :attr:`~anymail.message.AnymailMessage.merge_metadata` may
result in a Resend API error.
**No envelope sender**
Resend does not support specifying the
:attr:`~anymail.message.AnymailMessage.envelope_sender`.

View File

@@ -115,7 +115,8 @@ class ResendBackendIntegrationTests(AnymailTestMixin, SimpleTestCase):
},
)
message.attach_alternative("<p>HTML content</p>", "text/html")
message.attach("attachment1.txt", "Here is some\ntext for you", "text/plain")
# Resend does not support attachments in batch send (2024-11-21)
# message.attach("attachment1.txt", "Here is some\ntext for you", "text/plain")
message.send()
# Resend always queues: