Access is invite-only during beta. Once invited, create a key to personalize these examples. Production sending requires a separate review.
Send emails with Django
Use the PostShiba EmailBackend and django.core.mail.
The backend calls emails.send. import postshiba does not load Django.
Django 6.1 and later can use MAILERS instead.
Not on PyPI yet. Open pull requests on postshiba/sdks.
Errors and throttling
Failed responses raise postshiba.Error with error, field, and message.
A 429 with error throttled means the cluster hit its hourly throttle or its 24-hour cap. Do not retry that send immediately. Immediate retries hit the same cap.
The Django backend does not delay for you. In a queued task, catch postshiba.Error and check e.error == "throttled" before sending again.
See Errors.