Mail problem found with 2.2.3 malformed address

Hi, found this error email in my mailbox

I have replaced the original email address with xxxx
If necessary I can mail you the whole email 

A message that you sent contained one or more recipient addresses that were
incorrectly constructed:

  info@xxxxxxxx.eu info@xxxxxxxx.eu: malformed address: info@xxxxxxxx.eu may not follow info@xxxxxxxx.eu

This address has been ignored. There were no other addresses in your
message, and so no attempt at delivery was possible.

tim

Weird. An email contact is formatted as such:

Firstname Lastname user@email.com

Its not the costumer email that is causing problems its the webshop email address

This is four times the same shop email address
info@xxxxxxxx.eu info@xxxxxxxx.eu: malformed address: info@xxxxxxxx.eu may not follow info@xxxxxxxx.eu

tim

Try this in ent_email:



      if (empty($contact['name']) || $contact['name'] == $contact['email']) {
        return $contact['email'];
      }

      if (strtoupper(language::$selected['charset']) == 'UTF-8') {
        return mb_encode_mimeheader($contact['name']) .' <'. $contact['email'] .'>';
      }

      if (preg_match('#[,;"]#', $contact['name'])) {
        return '"'. addcslashes($contact['name'], '"') .'" <'. $contact['email'] .'>';
      }

      return $contact['name'] .' <'. $contact['email'] .'>';
    }```
Acest thread a fost închis din cauza inactivității îndelungate. Postarea pe acesta nu mai este posibilă.
View code on GitHub