Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Alternative User Emails

Security covered Maintenance fixes only 30 sites

This module allows users to store multiple email addresses in addition to their primary one, helping to prevent duplicate user accounts. It automatically adds old primary emails to the alternative list when the primary is changed and ensures all email addresses are unique to a user. It also modifies user queries to include alternative emails when searching by the primary email field.

This module stores alternative email addresses for users, in addition to the single primary email address stored in the user's mail field.

This can be useful for preventing duplicate users being created for people who have multiple email addresses, as most of us do.

What it does

  • A multi-value field called 'alternative_user_emails' is added to the user entity type.
  • When the primary email is changed, the old email is automatically added to the alternatives.
  • User entity queries are altered so that queries that filter by the mail field also filter by the alternatives.
  • Validation ensures that mails and alternatives are unique to a user.

Recommended modules

  • Read-only widget is useful if you wish to show the alternative emails on a user form, but not allow them to be edited.

Related modules

  • Multiple E-mail Addresses is a much more ambitious and feature-rich approach to allowing multiple email addresses for users. It is now available for Drupal 8+. However, it does not modify user queries in the way this module does.

Contributing

All contributions are welcome. Please submit MRs, not patches, so that the CI tests are run. Please add tests if possible.

If you post an issue and do not receive a response, feel free to contact me by private message in the Drupal Slack (ptmkenny) or via my Drupal.org contact form.

Sponsors

Initial development: Awakened Heart Sangha

Drupal 10–11

Ask your assistant about Alternative User Emails

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • field Drupal core
  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
May 2023
Latest release
8 months ago
Releases (12 mo)
1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.1 Stable 10–11 Jan 18, 2026
1.0.0 Stable 10–11 Oct 19, 2024
1.0.0-beta1 Pre-release 10–11 Jun 21, 2024
1.0.0-alpha4 Pre-release 9–10 Apr 3, 2024
1.0.0-alpha3 Pre-release 9–10 May 22, 2023