Official Python client for the Ranla email API.
pip install ranlaimport os
from ranla import Ranla
client = Ranla(os.environ["RANLA_API_KEY"])
email = client.emails.send(
from_="ops@yourdomain.com",
to="user@example.com",
subject="Your receipt",
html="<p>Thanks for your purchase.</p>",
)
print(email["id"], email["status"])Defaults to https://api.ranla.ai. API keys may start with rnl_ or stx_.
SuperSendTX is the same class under the previous name:
from ranla import SuperSendTXThe legacy supersendtx package on PyPI remains supported.
pip install 'ranla[django]'# settings.py
EMAIL_BACKEND = "ranla.django.EmailBackend"
# Uses RANLA_API_KEY from the environment.supersendtx.django.EmailBackend remains supported.
MIT