List of recipient emails in admin/structure/contact don't deal well with empty entries

Created on 5 August 2015, almost 10 years ago
Updated 17 May 2025, 1 day ago

Coming here from 🐛 Update storage of contact form email recipients Closed: works as designed I ran into a problem where

my@gmail.com, my@mail.ru, or my@gmail.com, my@mail.ru, was giving an error 1 error has been found: Recipients & is an invalid email address. when entering in lists of emails.

This is the same when you do something similar after the patch in 🐛 Update storage of contact form email recipients Closed: works as designed is applied. It's more of an issue with line returns though as you often don't see the last one. Note that the "\n" are just line returns:
my@gmail.com \n my@mail.ru \n & my@gmail.com \n \n my@mail.ru

The list of recipient emails in admin/structure/contact don't deal well with empty entries all that well. It would be much more user friendly to simply strip out null values when processing the form.

Also, with an empty value, the final error message should at least say BLANK is an invalid email address. it's a bit weird since it's a null value and so not very descriptive.

📌 Task
Status

Postponed

Version

11.0 🔥

Component

contact.module

Created by

🇨🇦Canada mgifford Ottawa, Ontario

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