Page 4 of 4 FirstFirst ... 234
Results 31 to 32 of 32
  1. #31
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: costumer account reg. email sent in two languages but not the third

    Great catch, lat9!

    Yes, it's true that Zen Cart silently aborts malformed emails for security reasons and also to prevent getting your hosting account suspended for (even unintentional) abuse.
    .

    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.

  2. #32
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: costumer account reg. email sent in two languages but not the third

    Quote Originally Posted by lat9 View Post
    It turns out that the issue with the welcome email not being sent in Hungarian was the result of the file /includes/languages/hungarian/create_account.php. Specifically, the EMAIL_SUBJECT definition contained new-line ("\n") characters and the zen_mail function (which sends the Zen Cart emails) has code that specifically checks for carriage-returns ("\r") and new-line characters in the to- and from-names, to- and from-addresses and the subject; if any are found, an injection attempt is assumed and the email is (silently) not sent.

    The fix is to change the line
    Code:
    define('EMAIL_SUBJECT', 'Üdvözöljük' . STORE_NAME .' webáruházban !' . "\n\n");
    to
    Code:
    define('EMAIL_SUBJECT', 'Üdvözöljük' . STORE_NAME .' webáruházban !');


    Hello!

    thanks for the help. It works now perfectly!!!

    you're a genius lat9!

    thanks so much

    Nandor

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. Copy of Create Account Email not being sent after switching to Paypal Express
    By Dreamer40 in forum PayPal Express Checkout support
    Replies: 7
    Last Post: 11 Mar 2015, 01:01 AM
  2. v151 Order confirmation email not sent to customers but I get a copy
    By Olet in forum General Questions
    Replies: 1
    Last Post: 13 May 2014, 08:02 PM
  3. v139e Orders not shown in admin, and no email sent to costumer and to admin email
    By Nandor in forum Managing Customers and Orders
    Replies: 26
    Last Post: 5 Mar 2013, 02:48 PM
  4. Wellcome Email, on two languages ?
    By sicness in forum General Questions
    Replies: 1
    Last Post: 18 Jul 2006, 07:58 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