Jump to content

placeholders (curly brackets) in Email not expanded for domains containing upper case letters


TerraD

Recommended Posts

If a customer registers using upper and lower case characters in the domain name of the email-address (in my case abcd@iXXtra.ch) the placeholders in the email will not expand. The registration Email will look like this (from a shop in switzerland):

Hallo {firstname} {lastname},
Vielen Dank für die Eröffnung Ihres Kundenkontos bei {shop_name}
 
 

Ihre Anmeldedaten für {shop_name}

Hier sind Ihre Anmeldedaten:
E-Mail-Adresse: {email}

...

All subsequent Emails will have the same problem. The registration process runs fine, the user may log in, orders can be made...

As upper case is allowed in domain names (iXXtra.ch and ixxtra.ch are the same thing)I consider this to be a bug

Edited by TerraD (see edit history)
Link to comment
Share on other sites

  • 1 year later...

We detected the same error, but only on Linux Servers.

Uppercase letters in e-mail domain -> no filled placeholders.

 

Adding the following line to classes/Mail.php in "function send" seems to fix this error.

$to = mb_strtolower($to);

But it is only a quick & dirty fix, so please provide a better fix that catches the real bug.

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...