Error sending e-mail

Open to all! Ask other shopowners for help.
Post Reply
randers
Member
Posts: 32
Joined: Mon Oct 26, 2020 8:22 pm
Phoenix Version: v1.0.8.16

Error sending e-mail

Post 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

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Error sending e-mail

Post 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"
randers
Member
Posts: 32
Joined: Mon Oct 26, 2020 8:22 pm
Phoenix Version: v1.0.8.16

Re: Error sending e-mail

Post by randers »

Thanks for your help. That fixed the problem.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply