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.
Re: costumer account reg. email sent in two languages but not the third
Quote:
Originally Posted by
lat9
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