Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Alternative User Emails

27 sites Security covered Drupal 10–11
View on drupal.org

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

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
2
Tracked since
Oct 2024
Latest release
7 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Jan 18, 2026
1.0.0 Stable 10–11 Oct 19, 2024