Skip to Content

Email (SMTP)

Send email from your apps with no setup — connected services get SMTP_HOST, SMTP_USER and the rest.

The Email (SMTP) add-on gives your apps an SMTP relay. Connect it to a service and the service gets the SMTP_* variables it needs. Sending is metered per email toward your plan's included usage.

Add it

On the canvas, click + Service → Add-on (Kafka, email, and more) → Email (SMTP).

The menu lists the add-ons your project's region offers.

The Add-ons menu: Memcached, ProxySQL, Email (SMTP) and Scheduled tasks
The Add-ons menu: Memcached, ProxySQL, Email (SMTP) and Scheduled tasks

An Email (SMTP) card appears, marked Ready to deploy. Click it: the panel says it "creates it on Dev right away" with the catalog defaults. Click Deploy (or Remove from canvas to drop it).

Email (SMTP): Ready to deploy, with Remove from canvas and Deploy
Email (SMTP): Ready to deploy, with Remove from canvas and Deploy

Set the sender

When the card shows Running, click it. Overview shows Sending and the From address: a Name and an Address on your project's mail domain (<project>.dev-mail.stackblaze.cloud here). The domains on offer come from the custom domains on this project's apps.

Email (SMTP) Overview: Sending, From Name and Address
Email (SMTP) Overview: Sending, From Name and Address

Send a test email

Open Send a test email, enter an address and click Send. The result shows whether the relay accepted it, for example "Accepted by the relay for … · 1.2 s · 250 Ok". This proves the relay takes the message; check the inbox to see where it lands.

Send a test email: Accepted by the relay, 250 Ok
Send a test email: Accepted by the relay, 250 Ok

Connect a service

Open Connected apps and turn on the switch next to the service, then commit and deploy the change (nginx ⇄ email off → on).

Connected apps: 0 connected, with a switch for nginx
Connected apps: 0 connected, with a switch for nginx

The service gets these variables:

VariableValue
SMTP_HOSTThe relay's address
SMTP_PORT587 (STARTTLS)
SMTP_USERThe relay user
SMTP_PASSWORDThe relay password
SMTP_FROMThe From address, e.g. noreply@<project>.dev-mail.stackblaze.cloud

Credentials for other tools

Credentials on Overview shows the same five values, each with a copy button; the password is masked. Use them for tools that don't read your app's variables.

Credentials: SMTP_HOST, SMTP_PORT 587 (STARTTLS), SMTP_USER, SMTP_PASSWORD and SMTP_FROM
Credentials: SMTP_HOST, SMTP_PORT 587 (STARTTLS), SMTP_USER, SMTP_PASSWORD and SMTP_FROM

Use your own SMTP provider

The Provider tab chooses between StackBlaze email (no setup, metered) and Your own SMTP provider (not metered; bounces and limits are your provider's). Changing the provider rewrites the SMTP_* variables and restarts connected services.

Provider: StackBlaze email or Your own SMTP provider
Provider: StackBlaze email or Your own SMTP provider

Delete

Delete add-on is at the bottom of Connected apps. Disconnect all apps first.

On this page