For the complete site index, see llms.txt. Docs index: llms-docs.txt. Marketing corpus: llms-full.txt. Docs corpus: llms-full-docs.txt. Prefer markdown URLs where available (append .md).. Product skill: skill.md. Pricing: pricing.md. Docs MCP: /docs/mcp. Site MCP: /mcp.

[Python SDK]

Flask

Drop Reloop into Flask blueprints for simple, production-ready transactional email.

Step 1

Install the package

Add the official Python client to your Flask project.

bash
pip install reloop-email

Step 2

Set your API key

Create a free Reloop account, copy your API key, and add it to your Flask environment.

Get an API key free โ†’
bash
RELOOP_API_KEY="re_xxxxxxxx"

Step 3

Send email from Flask

Use this Flask snippet to send your first message. Works with Blueprints ยท Routes.

send_email.py
1import os
2from flask import Flask, jsonify, request
3from reloop_email import Reloop
4
5app = Flask(__name__)
6reloop = Reloop(api_key=os.environ["RELOOP_API_KEY"])
7
8@app.post("/send")
9def send():
10 result = reloop.mail.send({
11 "from": "Acme <onboarding@yourdomain.com>",
12 "to": [request.json["to"]],
13 "subject": "Hello from Flask",
14 "html": "<strong>It works!</strong>",
15 })
16
17 if result.email_error:
18 return jsonify(error=str(result.email_error)), 500
19
20 return jsonify(id=result.response["id"])

Send with Flask.

Get an API key and ship transactional email from Flask using the official Python SDK.