[reloop-email]
Python
Integrate Reloop with Flask, FastAPI, or any Python app using a clean client with type hints and straightforward error handling.
1
Install the Python package
bash
pip install reloop-email2
Send email from Python
send_email.py
1import os2from reloop_email import Reloop3
4reloop = Reloop(api_key=os.environ["RELOOP_API_KEY"])5
6params = {7 "from": "Acme <onboarding@yourdomain.com>",8 "to": ["delivered@yourdomain.com"],9 "subject": "Hello from Python",10 "html": "<strong>It works!</strong>",11}12
13result = reloop.mail.send(params)14
15if result.email_error:16 raise result.email_error17
18print(f"Email sent: {result.response['id']}")3
GitHub, examples, and API reference
4
Need more help?
- Need help? Contact Support.
- Chat with Reloop developers on Discord.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.
Send with Python.
Get an API key and ship transactional email from Python using the official SDK.