Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    May 2007
    Location
    Oregon Coast
    Posts
    19
    Plugin Contributions
    0

    Default Re: HTML customer emails not working

    Well shucks (expletive replacement), I have tried about every combination possible. I must say my hosting is quite tolerant of just about all of the settings I have tried. Sends emails out just fine, just not in HTML. This is certainly not a crisis, as long as emails are sent, confirmations, orders, etc. I just believe HTML emails look more professional. Thank you Chuckl for all of your help. If someone stumbles across this thread with another idea, please post.

  2. #12
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: HTML customer emails not working

    There is the remote possibility that your host uses 7bit mime for emails. Which would also explain why your admin emails come through fine.(Admin defaults to 7bit).

    To test that, edit the 2 email_use_8bit.php files and change the define from 8bit to 7bit.

    Rgds,

  3. #13
    Join Date
    May 2007
    Location
    Oregon Coast
    Posts
    19
    Plugin Contributions
    0

    Default Re: HTML customer emails not working

    Quote Originally Posted by Chuckl View Post
    There is the remote possibility that your host uses 7bit mime for emails. Which would also explain why your admin emails come through fine.(Admin defaults to 7bit).

    To test that, edit the 2 email_use_8bit.php files and change the define from 8bit to 7bit.

    Rgds,
    I contacted support at my host, who stated they use 8bit mime. However I edited the files above, the results were the same. Emails sent as text.

  4. #14
    Join Date
    May 2007
    Location
    Oregon Coast
    Posts
    19
    Plugin Contributions
    0

    Default Re: HTML customer emails not working

    Well, after tons of trials and errors I've found something interesting.

    I have the Configuration>Customer Details - Customer Default Email Preference set to 1 (HTML)

    If I look in Customers>Customers>Edit, it shows the customer's Email Format Pref: as HTML

    However, if the customer is logged in, goes to My Account>View or Change my account information, the Newsletter and Email Details shows the TEXT-Only radio button marked. If that is changed to HTML, updated, then all subsequent emails are then sent as HTML.

    I am not using newsletters and there is no email preference choice on the sign up page.

    So what is happening with the Customer Default Email Preference setting in the configuration?

    And why is it showing the customer's Email Format Pref: as HTML?

  5. #15
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: HTML customer emails not working

    Thats often caused by a 'constant variable', something that is user selectable in one place is hard coded in somewhere else.
    Might be related to the posts on this page

    http://www.zen-cart.com/forum/showth...=37185&page=44

  6. #16
    Join Date
    May 2007
    Location
    Oregon Coast
    Posts
    19
    Plugin Contributions
    0

    Default Re: HTML customer emails not working

    Quote Originally Posted by Chuckl View Post
    Thats often caused by a 'constant variable', something that is user selectable in one place is hard coded in somewhere else.
    Might be related to the posts on this page

    http://www.zen-cart.com/forum/showth...=37185&page=44
    Thanks Chuckl, I looked through the above thread, but nothing really popped out as to what I might be looking for. I'll keep going through it.

    Way back in my DOS programming days, unless otherwise defined, variables defaulted to values (ie String Variables to NULL, Integers to 0, etc. Would it not be possible upon customer signup to initially hard-code in the customer's email preference variable (whatever that is) to HTML? Could this be done in create_account.php? And by the way, what IS that variable?

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

    Default Re: HTML customer emails not working

    1. What version of Zen Cart? (I believe you said 1.3.7 a bit ago)
    2. Was this a fresh install or an upgrade? from what version?
    3. What contributions/addons do you have installed?
    4. What customizations have you made to the create-account process?
    - /includes/modules/create_account.php
    - /includes/modules/pages/create_account/header_php.php
    - /includes/templates/YOURTEMPLATE/templates/tpl_create_account_default.php
    and any other files related to the create-account infrastructure?
    .

    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.

  8. #18
    Join Date
    May 2007
    Location
    Oregon Coast
    Posts
    19
    Plugin Contributions
    0

    Default Re: HTML customer emails not working

    Quote Originally Posted by DrByte View Post
    1. What version of Zen Cart? (I believe you said 1.3.7 a bit ago)
    2. Was this a fresh install or an upgrade? from what version?
    3. What contributions/addons do you have installed?
    4. What customizations have you made to the create-account process?
    - /includes/modules/create_account.php
    - /includes/modules/pages/create_account/header_php.php
    - /includes/templates/YOURTEMPLATE/templates/tpl_create_account_default.php
    and any other files related to the create-account infrastructure?
    Hi DrByte,

    Version 1.3.7
    Fresh install using Fantastico on my server
    No addons
    No customizations of any files (that I know of).
    Used the Admin panel to set my preferences for the store.

  9. #19
    Join Date
    May 2007
    Location
    Oregon Coast
    Posts
    19
    Plugin Contributions
    0

    Default Re: HTML customer emails not working

    Just did a check on the database. After a customer signs up, the customer_email_format field is null (blank). This field is not being written to during signup. However, if a customer accesses their account, updates, then the field is written to.

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

    Default Re: HTML customer emails not working

    You mentioned that you have turned off the newsletter-selection box for customers. However, since the email-format-preference is determined in that section of the page, since you have supressed the ability for the customer to make such selection, it is being set to the database-default of TEXT.
    To override that, do the following:
    edit /includes/modules/create_account.php
    around line 25, you see:
    Code:
      $zone_id = 0;
      $error = false;
    /**
     * Process form contents
     */
    insert two new lines in the middle of that, as shown:
    Code:
      $zone_id = 0;
      $error = false;
      $email_format = (ACCOUNT_EMAIL_PREFERENCE == '1' ? 'HTML' : 'TEXT');
      $newsletter = (ACCOUNT_NEWSLETTER_STATUS == '1' ? false : true);
    /**
     * Process form contents
     */
    You can then remove these lines from 429-430, as they will now be redundant:
    Code:
      if (!isset($email_format)) $email_format = (ACCOUNT_EMAIL_PREFERENCE == '1' ? 'HTML' : 'TEXT');
      if (!isset($newsletter))   $newsletter = (ACCOUNT_NEWSLETTER_STATUS == '1' ? false : true);
    Now all new customers will get the preference selected by the administrator, rather than their own choice.
    .

    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.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Emails, html preview not working anymore, ajax update problem?
    By veronicathecow in forum General Questions
    Replies: 0
    Last Post: 13 Dec 2015, 02:27 PM
  2. v139h Send email feature with HTML emails is not working for me
    By Laszlo in forum General Questions
    Replies: 9
    Last Post: 5 Aug 2013, 06:08 PM
  3. HTML Emails not working with COWOA addon
    By philip937 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 3 Sep 2010, 02:58 AM
  4. Customer emails in HTML
    By Kayla in forum General Questions
    Replies: 2
    Last Post: 24 Oct 2008, 08:59 PM
  5. Replies: 1
    Last Post: 12 Nov 2007, 08:49 AM

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