Flask email
Send Flask email with an API or SMTP
Flask apps usually need a few reliable email flows: verify an account, reset a password, notify support, or send a receipt. zaSend works from Flask through the Python SDK or standard SMTP.
Python SDK example
from zasend import ZaSend
client = ZaSend(app.config["ZASEND_API_KEY"])
def send_welcome_email(user):
client.send_email(
from_email="Acme <noreply@yourdomain.com>",
to=user.email,
subject="Welcome to Acme",
text="Thanks for creating an account.",
html="<p>Thanks for creating an account.</p>",
)
SMTP settings
Host
smtp.zasend.com
Port
587 STARTTLS
Username
noreply@yourdomain.com
Password
dsk_live_...
Do not send from the browser
Keep API keys and SMTP keys on the server. If your Flask app has a frontend, send a request to your own backend first, then let the backend call zaSend.