Autore Topic: [v8] Errata formattazione delle email su hosting linux di aruba  (Letto 1127 volte)

serzio

  • Amministratore
  • Utente storico
  • *****
  • Post: 1706
Il problema viene risolto eliminando tutte le occorrenze di \r (carriage return) nel file C:\Programmi\WebSite X5 v8 - Evolution\Res\imemail.inc.php  come mostrato nell'esempio:

Citazione
...
            $boundary = md5(time());
           
            $headers .= "From: " . $this->from . "\r\n";
            $headers .= "Message-ID: <" . time() . rand(0,9) . rand(0,9) . "@websitex5.users>\r\n";
            $headers .= "X-Mailer: WebSiteX5 Mailer\r\n";
            $headers .= "MIME-Version: 1.0\r\n";

            if(is_array($this->attachments)) {
                $headers .= "Content-Type: multipart/mixed; boundary=\"" . $boundary . "\"\r\n\r\n";
                $headers .= "--" . $boundary . "\r\n";
            }
           
            if($this->html == "") {
                $headers .= "Content-Type: text/plain; charset=" . $this->charset . "\r\n";
                $headers .= "Content-Transfer-Encoding: 8bit\r\n";
                $msg .= $this->text . "\r\n\r\n";
...