Guides
Send email from any language or framework
Working code for the stack you use. Each guide sends a real email with one HTTPS request.
In short
To send email from an application, verify your domain with an email API, store the API key in an environment variable, and POST the message as JSON from your server-side code. Pick your stack below for a complete example.Send email with Next.js
Send transactional email from a Next.js App Router server action or route handler.
Send email with Node.js
Send email from any Node.js app with the typed SDK or plain fetch.
Send email with Express
Send email from an Express route with fetch - no SDK needed.
Send email with Python
Send email from Python with requests and the REST API.
Send email with Django
Send transactional email from a Django view or task over the HTTP API.
Send email with Flask
Send email from a Flask route with the REST API.
Send email with PHP
Send email from plain PHP with cURL and the REST API.
Send email with Laravel
Send email from Laravel with the built-in HTTP client.
Send email with Go
Send email from Go with net/http and the REST API.
Send email with Ruby on Rails
Send email from Rails with Net::HTTP and the REST API.
Send email with Java
Send email from Java 17+ with the built-in HttpClient and the REST API - no JavaMail, no SMTP.
Send your first email in minutes
6,000 emails a month (up to 200 a day), free forever. No card needed.