Add recipient user token

Created on 11 June 2024, 5 months ago
Updated 12 June 2024, 5 months ago

Problem/Motivation

I suggest adding the recipient (user) token to be available in the email template. It will give more information about the recipient e.g. display name "[user:display-name]"..etc.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Odai Atieh Amman

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

Comments & Activities

  • Issue created by @Odai Atieh
  • πŸ‡―πŸ‡΄Jordan Odai Atieh Amman
  • Status changed to Closed: won't fix 5 months ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Sorry but this assumes the recipient email is drawn from a user.
    The module supports any email field, not just users.

    I don't see how we can support this.

  • πŸ‡―πŸ‡΄Jordan Odai Atieh Amman

    The idea is to add additional tokens, such as the user's information, to enhance the template with supportive details, but only if the email was related to an existing user. If these tokens are not available, they will not impact the template's functionality.

    This approach can be useful for incorporating more personalized information about the recipient in the template, such as "Dear [recipient's first name]."

  • Status changed to Active 5 months ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    I think we'd need to convey to the user that the tokens were it weren't available
    That would likely require extra information on the plugins

  • Status changed to Needs review 5 months ago
  • πŸ‡―πŸ‡΄Jordan Odai Atieh Amman

    I've updated the description of the available token for the email body field. Also, I added the user tokens to the tokens tree.

Production build 0.71.5 2024