Skip to content

Send email on user registration with field values

Version v1

Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):

1
2
composer require drupal-eca-recipe/eca_lib_0025
cd web && php core/scripts/drupal recipe ../vendor/drupal-eca-recipe/eca_lib_0025

Purpose

This model sends an email to a user that has just registered on the site. That email contains field values, that the user just provided in the registration form, where one of the fields is mandatory and the other one is optional. The email message is different, depending upon the optional field being filled or not.

The creation of this model was recorded and can be watched here.

Dependencies

  • config
    • field.field.user.user.field_country
    • field.field.user.user.field_home_town
    • field.storage.user.field_country
    • field.storage.user.field_home_town
  • module
    • eca_base
    • eca_content
    • user

Used plugins

Events

Conditions

Actions

Changelog

v1

Initial release