Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    red flag 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 Modifications
    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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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:
    Code:
        // use contact us dropdown if defined
        if (CONTACT_US_LIST !=''){
          $send_to_array=explode("," ,CONTACT_US_LIST);
    becomes this:
    Code:
        // use contact us dropdown if defined
        if (CONTACT_US_LIST !=''){
          $send_to_array=explode(",", str_replace(array("\n", "\r", "\r\n", "\t"), '', CONTACT_US_LIST));

    (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.

  3. #3
    Join Date
    Sep 2005
    Location
    Austria
    Posts
    104
    Plugin Contributions
    6

    Default 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. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

  5. #5
    Join Date
    Sep 2005
    Location
    Austria
    Posts
    104
    Plugin Contributions
    6

    Default

    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.

  6. #6
    Join Date
    Feb 2008
    Posts
    60
    Plugin Contributions
    0

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

    Quote Originally Posted by swguy View Post
    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 THANKS!

  7. #7
    Join Date
    Feb 2008
    Posts
    60
    Plugin Contributions
    0

    Default 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?

  8. #8
    Join Date
    Nov 2006
    Posts
    76
    Plugin Contributions
    0

    Default 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.


    Quote Originally Posted by swguy View Post
    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).

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

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

    Quote Originally Posted by Dytron View Post
    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?ma...roducts_id=198

    Good luck,
    That Software Guy
    That Software Guy. My Store: Zen Cart Modifications
    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.

 

 

Similar Threads

  1. v150 Set "Contact Us" Email Dropdown List
    By f2bs in forum General Questions
    Replies: 4
    Last Post: 29 Apr 2015, 03:25 PM
  2. v150 Set "Contact Us" Email Dropdown List
    By f2bs in forum Basic Configuration
    Replies: 3
    Last Post: 29 Apr 2015, 12:10 AM
  3. Replies: 3
    Last Post: 22 Mar 2011, 10:53 AM
  4. Where to set the email address "Contact form" entry go?
    By e81ny in forum Basic Configuration
    Replies: 3
    Last Post: 11 Aug 2008, 02:53 PM
  5. [Done 1.3.9] Set "Contact Us" Email Dropdown List
    By capnhairdo in forum Bug Reports
    Replies: 0
    Last Post: 7 Mar 2008, 09:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR