diff --git a/htdocs/core/class/CMailFile.class.php b/htdocs/core/class/CMailFile.class.php index 9d5bec582cb..b07cfa74231 100644 --- a/htdocs/core/class/CMailFile.class.php +++ b/htdocs/core/class/CMailFile.class.php @@ -1709,7 +1709,9 @@ class CMailFile //$out.= "From: ".$this->getValidAddress($this->addr_from,3,1).$this->eol; $out .= "Content-Type: multipart/mixed;".$this->eol2." boundary=\"".$this->mixed_boundary."\"".$this->eol2; - $out .= "Content-Transfer-Encoding: 8bit".$this->eol2; // TODO Seems to be ignored. Header is 7bit once received. + if (!getDolGlobalString("MAIN_EMAIL_DISABLE_ADD_CONTENT_ENCODING_8BIT")) { + $out .= "Content-Transfer-Encoding: 8bit".$this->eol2; // TODO Seems to be ignored. Header is 7bit once received. + } dol_syslog("CMailFile::write_smtpheaders smtp_header=\n".$out, LOG_DEBUG); return $out; diff --git a/htdocs/public/payment/paymentok.php b/htdocs/public/payment/paymentok.php index 2cddf7227d9..634a068ea82 100644 --- a/htdocs/public/payment/paymentok.php +++ b/htdocs/public/payment/paymentok.php @@ -2103,15 +2103,15 @@ if ($ispaymentok) { $content = ""; if (array_key_exists('MEM', $tmptag)) { $url = $urlwithroot."/adherents/subscription.php?rowid=".((int) $tmptag['MEM']); - $content .= ''.$companylangs->trans("PaymentSubscription")."

\n"; - $content .= $companylangs->trans("MemberId").': '.$tmptag['MEM']."
\n"; - $content .= $companylangs->trans("Link").': '.$url.''."
\n"; + $content .= ''.$companylangs->transnoentitiesnoconv("PaymentSubscription")."

\n"; + $content .= $companylangs->transnoentitiesnoconv("MemberId").': '.$tmptag['MEM']."
\n"; + $content .= $companylangs->transnoentitiesnoconv("Link").': '.$url.''."
\n"; } elseif (array_key_exists('INV', $tmptag)) { $url = $urlwithroot."/compta/facture/card.php?id=".((int) $tmptag['INV']); - $content .= ''.$companylangs->trans("Payment")."

\n"; - $content .= $companylangs->trans("InvoiceId").': '.$tmptag['INV']."
\n"; + $content .= ''.$companylangs->transnoentitiesnoconv("Payment")."

\n"; + $content .= $companylangs->transnoentitiesnoconv("InvoiceId").': '.$tmptag['INV']."
\n"; //$content.=$companylangs->trans("ThirdPartyId").': '.$tmptag['CUS']."
\n"; - $content .= $companylangs->trans("Link").': '.$url.''."
\n"; + $content .= $companylangs->transnoentitiesnoconv("Link").': '.$url.''."
\n"; } else { $content .= $companylangs->transnoentitiesnoconv("NewOnlinePaymentReceived")."
\n"; } @@ -2199,7 +2199,7 @@ if ($ispaymentok) { $companylangs->loadLangs(array('main', 'members', 'bills', 'paypal', 'paybox', 'stripe')); $sendto = $sendemail; - $from = getDolGlobalString('MAILING_EMAIL_FROM') ? $conf->global->MAILING_EMAIL_FROM : getDolGlobalString("MAIN_MAIL_EMAIL_FROM"); + $from = getDolGlobalString('MAILING_EMAIL_FROM', getDolGlobalString("MAIN_MAIL_EMAIL_FROM")); // Define $urlwithroot $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root)); $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file