Provide an explanation of user email settings tokens

Created on 19 June 2009, about 15 years ago
Updated 26 March 2024, 6 months ago

Problem/Motivation

Several tokens can be used in the e-mail messages configured on /admin/config/people/accounts, but it is not clear what each token represents.

Steps to reproduce

Visit /admin/config/people/accounts as a site administrator, and scroll down to the Emails section. Each vertical tab includes the text,

Available variables are: [site:name], [site:url], [user:display-name], [user:account-name], [user:mail], [site:login-url], [site:url-brief], [user:edit-url], [user:one-time-login-url], [user:mail-change-url], [user:cancel-url].

Proposed resolution

To be determined (TBD).

Perhaps we should expand the help text.

Perhaps, instead of repeating the help text in each vertical tab, we should move it to a separate section.

Remaining tasks

User interface changes

TBD

API changes

None

Data model changes

None

Release notes snippet

TBD

Original report by [joachim]

  $email_token_help = t('Available variables are:') . ' !username, !site, !password, !uri, !uri_brief, !mailto, !date, !login_uri, !edit_uri, !login_url, !cancel_url.';

The above message is shown to the admin user without any explanation of what the tokens mean. I can guess at some of them, but what is !uri_brief for instance? Or !mailto?

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
User moduleΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024