Resend: add support for send_at

Resend's new `scheduled_at` API field allows delayed sending
(though not with attachments or batch sending).

Closes #396.
This commit is contained in:
Mike Edmunds
2024-09-06 11:29:01 -07:00
parent af6eaea565
commit 2f2a888f61
6 changed files with 63 additions and 7 deletions

View File

@@ -73,6 +73,8 @@ class ResendBackendIntegrationTests(AnymailTestMixin, SimpleTestCase):
headers={"X-Anymail-Test": "value", "X-Anymail-Count": 3},
metadata={"meta1": "simple string", "meta2": 2},
tags=["tag 1", "tag 2"],
# Resend supports send_at or attachments, but not both at once.
# send_at=datetime.now() + timedelta(minutes=2),
)
message.attach_alternative("<p>HTML content</p>", "text/html")