Page 1 of 1

Error sending e-mail

Posted: Fri Sep 15, 2023 9:19 pm
by randers
Our internet provider updated its servers and after that we get the following error message when sending an e-mail :
"Notice: mail(): Policy restriction in effect. The fifth parameter is disabled on this system in /xxxxxx/shop/includes/system/ versioned/1.0.8.5/email.php on line 398 Warning: Cannot modify header information - headers already sent by (output started at /xxxxxxx/shop/includes/system/versioned/1.0.8.5/email.php:398) in / xxxx/shop/includes/system/versioned/1.0.8.5/href.php on line 168"

Does anyone know how this can be resolved?

Phoenix 1.0.8.16
PHP = 8.3

Re: Error sending e-mail

Posted: Sat Sep 16, 2023 12:07 am
by ecartz
It's saying to change https://github.com/CE-PhoenixCart/Phoen ... l.php#L381 from

Code: Select all

      return mail($to, $this->ensure_encoding($subject), $this->output, implode($this->lf, $headers), "-f$from_addr");
to

Code: Select all

      return mail($to, $this->ensure_encoding($subject), $this->output, implode($this->lf, $headers));
I.e. remove

Code: Select all

, "-f$from_addr"

Re: Error sending e-mail

Posted: Sun Sep 17, 2023 9:38 pm
by randers
Thanks for your help. That fixed the problem.