Forums / General Questions / Set "Contact Us" Email Dropdown List setting in admin

Set "Contact Us" Email Dropdown List setting in admin

Locked

Views: 11,955

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Jan 2008, 4:28 AM
#1
swguy avatar

swguy

Administrator

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

Set "Contact Us" Email Dropdown List setting in admin

Improper datafill of this field can lead to dropped email.

When filling out this field, be EXTREMELY careful not to hit carriage return between entries - if you do, it will not be visible on the screen, but the embedded \n will cause the email address after the carriage return to not work, since the contact list is retrieved as is from the database, and zen_mail looks suspiciously at names & addresses with these characters in them (see l. 57, functions_email.php). Suggested mitigation: contact_us/header.php could post-process the defined constant CONTACT_US_LIST to parse out \r or \n characters. (This would be less expensive than handling it in init_db_config_read.php.)

If there is some question as to whether this is happening to you, simply delete the entire contents of this field, and retype it in (taking care not to hit the enter key between entries).

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.

23 Jan 2008, 8:07 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Set "Contact Us" Email Dropdown List setting in admin

Good point.

Suggested coding change could be:

/includes/modules/pages/contact_us/header_php.php
around line 37:// use contact us dropdown if defined if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST);becomes this:```
// use contact us dropdown if defined
if (CONTACT_US_LIST !=''){
$send_to_array=explode(",", [B]str_replace(array("\n", "\r", "\r\n", "\t"), '', CONTACT_US_LIST)[/B]);



(This will be included in v1.4.0)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Apr 2008, 5:31 PM
#3
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: Set "Contact Us" Email Dropdown List setting in admin

How to setup email subjects in different languages for a multilanguage shop in the email dropdown list?
I use different subjects and recipients in my German shop and am preparing an English version. In the English contact form the german subjects are shown as they are set in German in admin.
Any help is appreciated.

4 Apr 2008, 5:58 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Set "Contact Us" Email Dropdown List setting in admin

Only one language is currently offered.
I guess you could include doubles ... english followed by german, etc

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Apr 2008, 6:14 PM
#5
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: Set "Contact Us" Email Dropdown List setting in admin

Thanks for your quick reply. As I plan to launch a French version as well I will deactivate the dropdown and mod the form so the user can enter a subject manually.

2 Jun 2008, 3:41 PM
#6
dytron avatar

dytron

New Zenner

Join Date:
Feb 2008
Posts:
60
Plugin Contributions:
0

Re: Set "Contact Us" Email Dropdown List setting in admin

swguy:

Improper datafill of this field can lead to dropped email.

When filling out this field, be EXTREMELY careful not to hit carriage return between entries - if you do, it will not be visible on the screen, but the embedded \n will cause the email address after the carriage return to not work, since the contact list is retrieved as is from the database, and zen_mail looks suspiciously at names & addresses with these characters in them (see l. 57, functions_email.php). Suggested mitigation: contact_us/header.php could post-process the defined constant CONTACT_US_LIST to parse out \r or \n characters. (This would be less expensive than handling it in init_db_config_read.php.)

If there is some question as to whether this is happening to you, simply delete the entire contents of this field, and retype it in (taking care not to hit the enter key between entries).

swguy-
thanks that saved me, wasnt getting emails from contact us page. I had 3 email addresses defined. Then deleted from Admin>Config>Email-Options>Set "Contact Us" Email Dropdown List the defined email addresses and populated the list again being careful not to hit return and now all is working fine :clap: :hug: THANKS!

2 Jun 2008, 4:04 PM
#7
dytron avatar

dytron

New Zenner

Join Date:
Feb 2008
Posts:
60
Plugin Contributions:
0

Re: Set "Contact Us" Email Dropdown List setting in admin

now that the buzz has worn off from getting things fixed for the contact us email, am wondering is there a way in Zen to look up history or users that have tried to send email?
I see from user tracking this page /contact_us.html?action=success
which means that contact us email was sent. Any other way to track?

13 Jul 2008, 3:06 AM
#8
astarkley avatar

astarkley

New Zenner

Join Date:
Nov 2006
Posts:
72
Plugin Contributions:
0

Re: Set "Contact Us" Email Dropdown List setting in admin

Thanx for posting this; I was going crazy trying to figure out why I wasn't getting "contact us" emails.

swguy:

Improper datafill of this field can lead to dropped email.

When filling out this field, be EXTREMELY careful not to hit carriage return between entries - if you do, it will not be visible on the screen, but the embedded \n will cause the email address after the carriage return to not work, since the contact list is retrieved as is from the database, and zen_mail looks suspiciously at names & addresses with these characters in them (see l. 57, functions_email.php). Suggested mitigation: contact_us/header.php could post-process the defined constant CONTACT_US_LIST to parse out \r or \n characters. (This would be less expensive than handling it in init_db_config_read.php.)

If there is some question as to whether this is happening to you, simply delete the entire contents of this field, and retype it in (taking care not to hit the enter key between entries).

13 Jul 2008, 9:09 AM
#9
swguy avatar

swguy

Administrator

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

Re: Set "Contact Us" Email Dropdown List setting in admin

Dytron:

now that the buzz has worn off from getting things fixed for the contact us email, am wondering is there a way in Zen to look up history or users that have tried to send email?

Take a look at the Email Archive Manager.

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_41&products_id=198

Good luck,
That Software Guy

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.