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

    Default Re: HTML customer emails not working

    Man, that looked like it would work. Made the changes, here is that section from the file:

    /**
    * Set some defaults
    */
    $process = false;
    $zone_name = '';
    $entry_state_has_zones = '';
    $error_state_input = false;
    $state = '';
    $zone_id = 0;
    $error = false;
    $email_format = (ACCOUNT_EMAIL_PREFERENCE == '1' ? 'HTML' : 'TEXT');
    $newsletter = (ACCOUNT_NEWSLETTER_STATUS == '1' ? false : true);
    /**
    * Process form contents
    */

    And removed the redundant lines.

    customers_email_format field in the customer record is still not being updated in the database when a customer signs up. Other fields are being populated as they should. The field is totally blank. As before, if a customer goes into view or change my account information, clicks update, the customers_email_format field is written to.

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

    Default Re: HTML customer emails not working

    Down around line 68 is another line that needs to be deactivated.
    Add the // marks as shown:
    Code:
      $country = zen_db_prepare_input($_POST['zone_country_id']);
      $telephone = zen_db_prepare_input($_POST['telephone']);
      $fax = zen_db_prepare_input($_POST['fax']);
    //  $email_format = zen_db_prepare_input($_POST['email_format']);
      $customers_authorization = CUSTOMERS_APPROVAL_AUTHORIZATION;
      $customers_referral = zen_db_prepare_input($_POST['customers_referral']);
    .

    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. #23
    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
    Down around line 68 is another line that needs to be deactivated.
    Add the // marks as shown:
    Code:
      $country = zen_db_prepare_input($_POST['zone_country_id']);
      $telephone = zen_db_prepare_input($_POST['telephone']);
      $fax = zen_db_prepare_input($_POST['fax']);
    //  $email_format = zen_db_prepare_input($_POST['email_format']);
      $customers_authorization = CUSTOMERS_APPROVAL_AUTHORIZATION;
      $customers_referral = zen_db_prepare_input($_POST['customers_referral']);
    That did it! Success! Thanks DrByte and also Chuckl for all the help. I'm sure there are so many unique situations and configurations we users are coming up with that it is impossible to predict them all. Again, many thanks.

    Jim

  4. #24
    Join Date
    Jul 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: HTML customer emails not working

    I am having the same problem. Email sent from within admin go as HTML, but the welcome email still comes across at plain text with no line breaks or bold text. Like this:

    Dear Mr. X,
    We wish to welcome you to NoNameJava.com.
    With your account, you can now take part in the various services we have to offer you. Some of these services include: Permanent Cart - Any products added to your online cart remain there until you remove them, or check them out. Address Book - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves. Order History - View your history of purchases that you have made with us. Products Reviews - Share your opinions on products with our other customers.
    For help with any of our online services, please email the store-owner: [email protected]
    Sincerely,

    Roast Master
    Store Owner

    http://www.nonamejava.com/

    I have tried everything as instructed in this thread. I have a fresh intstall of v 1.37 and have tried all variations of settings and made file changes as above.

    Any further ideas on how to fix this?

    Thanks,
    -Todd

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

    Default Re: HTML customer emails not working

    The HTML messages are sent with a plain text as well as an HTML section.i.e. as a multipart message. The format you are referring to in your post is typical of text extracted from an HTML message, rather than a true text welcome message.
    Some mail readers however automatically choose the first section of a multipart message rather than the most 'complex', so it's worth looking at the message source to see if there is a text/html section in the message.

    SImilarly, if the HTML is 'broken' in some way, it may be falling back to the text version.

    Another possibilty is that it cannot find the email templates in the /email/ folder, because of permissions or similar.

    Some mail services, particularly the web based services are also fairly ruthless in stripping out HTML that they have decided they don't like.

    And of course check that the test customers email preference is set to HTML, not NULL or TEXT.

 

 
Page 3 of 3 FirstFirst 123

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