Learn how to customize transactional emails
./nhost/emails
folder and have the following structure:
signin-passwordless-sms
, they require 2 files for the subject and body.
auth.users
table in the locale
column. This locale
column contains a two-letter language code (ISO 639-1) which is used to infer what language and template to use in the email.
locale
column is en
Variable | Description |
---|---|
link | The full URL to the target of the transaction. This should be used in the main call to action. |
serverUrl | URL of the authentication server |
clientUrl | URL of your client app |
redirectTo | URL where the user will be redirected to after clicking the link and finishing the action of the email |
ticket | Ticket or OTP that is used to authorize the request. |
displayName | The display name of the user |
email | The email of the user |
locale | Locale of the user as a two-letter language code (e.g. “en”) |
${}
as in the following example:
host
is set exactly to postmark
.