Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

[bug] recommended php.ini settings cause phpmailer to fail sending #17399

Open
WMCyn opened this issue Mar 13, 2024 · 4 comments
Open

[bug] recommended php.ini settings cause phpmailer to fail sending #17399

WMCyn opened this issue Mar 13, 2024 · 4 comments

Comments

@WMCyn
Copy link

WMCyn commented Mar 13, 2024

in the recommended php.ini

The disabled functions cause phpmailer to stop with an error as it cannot call "popen" to sendmail.

from cron task table error: "Call to undefined function PHPMailer\PHPMailer\popen()"

also this causes the system to complain about security configuration being wrong when the "popen" is re-enabled, see image.

How do we stop the system warning about this???

image

@WMCyn
Copy link
Author

WMCyn commented Mar 13, 2024

@mariuszkrzaczkowski
Copy link
Member

popen is not recommended for security reasons, if you need to use it, enable it.

@s2b-git
Copy link

s2b-git commented Mar 16, 2024

Marius, does current version of system uses the same settings? If not can this be updated?

@WMCyn
Copy link
Author

WMCyn commented Mar 18, 2024

popen is not recommended for security reasons, if you need to use it, enable it.

The main problem is that the recommended settings stop a basic function of the system, making it confusing to find the cause.

Is their an alternative setting for the email sending that does not need the "popen" function?

If not then most systems will need "popen" enabled as most systems will be using email (even something as simple as forgotten password will need email) .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants