If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Set "Contact Us" Email Dropdown List allows values that don't work with related code

Set "Contact Us" Email Dropdown List allows values that don't work with related code

Started by white_fir_design on 12 Nov 2024, 6:20 PM · Views: 944

Results 1 to 3 of 3
12 Nov 2024, 6:20 PM
#1
white_fir_design avatar

white_fir_design

New Zenner

Join Date:
Dec 2014
Posts:
3
Plugin Contributions:
0

Set "Contact Us" Email Dropdown List allows values that don't work with related code

On the admin page Configuration>Email, the Set "Contact Us" Email Dropdown List setting allows you to set the value to something like "[email protected]". If you set the value to something not allowed there is message that says "The text entered was not recognized as an acceptable email address, i.e. Name email@domain or email@domain or email@domain or any combination of these separated by a comma." So that does appear to be an intended value. The code for the related Contact Us page doesn't work with that. The related code is in the file /includes/modules/pages/contact_us/header_php.php. That code is expecting it to be in the format "Name 1 email@address1" or at least "email@address1". That leads to email being sent to a different email address than intended when set to something like "[email protected]".

12 Nov 2024, 9:34 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Set "Contact Us" Email Dropdown List allows values that don't work with related code

Don't use the dropdown list unless you have multiple possible emails, such as

Sales [email protected], Service [email protected], Parts [email protected]

If you only have one email, don't use this setting.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

12 Nov 2024, 9:53 PM
#3
white_fir_design avatar

white_fir_design

New Zenner

Join Date:
Dec 2014
Posts:
3
Plugin Contributions:
0

Re: Set "Contact Us" Email Dropdown List allows values that don't work with related code

We were not the one using it that way, but someone else was using it that way. Which is why we ran into the issue.

As our previous message indicates, that setting has a check to limit what values can be entered, but it fails to restrict the mentioned type of value. If it isn’t intended, as it apparently isn't, then the check should presumably restrict that as well.