Skip to content

Mail ​

Environment Variable draft xyz environment mail users

TRANSPORT_EMAIL and TRANSPORT_PASSWORD let XYZ send account emails through Resend; TRANSPORT_PORT and TRANSPORT_TLS are no longer used.

Resource and sources
VariableDefaultPurpose
TRANSPORT_EMAILnoneSender address of every email.
TRANSPORT_PASSWORDnoneResend API key.
TRANSPORT_PORT587Not used.
TRANSPORT_TLSfalseNot used.

XYZ sends account emails: registration and password reset verification, approval requests to administrators, and approval, deletion and locked account notices; see failed logins. Mail is sent through the Resend API. The sender domain must be verified with Resend.

Both TRANSPORT_EMAIL and TRANSPORT_PASSWORD must be set, and the optional resend dependency installed, or no email is sent. A missing dependency is logged once at startup. Unsent mail is otherwise silent, so users can register but never receive the verification link.

dotenv
TRANSPORT_EMAIL=maps@example.com
TRANSPORT_PASSWORD=re_xxxxxxxx

The API key is a secret; keep it in a secret manager or the varlock schema.

Email text comes from the mail templates, which a workspace or CUSTOM_TEMPLATES can override; see Sources and signers. A template body may be a src reference; an email whose body fails to load is not sent. The mailer and mailer_body log keys log the sender, recipients and body.

Obsolete variables ​

TRANSPORT_PORT and TRANSPORT_TLS still get defaults in processEnv.js, but no module reads them since mail moved from SMTP to Resend in v5. They have no effect. The v4 TRANSPORT and TRANSPORT_HOST variables are also ignored.

XYZ v5.1.0. Generated from knowledge/ at dd7a6fa27736502733499c1bf485f15659b10338. Concepts marked draft are not reviewed.