Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

SuperSend TX Python SDK

Official Python client for the SuperSend TX transactional email API.

pip install supersendtx
from supersendtx import SuperSendTX

tx = SuperSendTX("stx_your_key_here")

result = tx.emails.send(
    from_="you@yourdomain.com",
    to="user@example.com",
    subject="Hello",
    html="<p>It works.</p>",
)

print(result["id"], result["status"])

Django

pip install 'supersendtx[django]'
EMAIL_BACKEND = "supersendtx.django.EmailBackend"
# SUPERSENDTX_API_KEY in the environment

Docs: https://docs.supersendtx.com/sdks/python