-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safemode detection is not working properly #2871
Comments
The wiki is editable if you have better references. That error message is nearly always caused by the server not having a local mail server installed. The use of safe mode is relatively rare (I've literally never been asked about it here), but if you've got a better way of handling it, PRs are welcome. |
Actually that's not quite true. In 2016 I said:
|
Right, it's not because of safe mode but it is not a misconfiguration or nothing being installed. It's just configured differently than you expect. mail() is working fine for me, but PHPMailer still crashes. I appreciate your work, but I am not sure why you keep insisting that there is no problem. If you have "literally" never been asked, here it is. I don't know how to add a PR for the troubleshooting guide. The most simple solution is to set |
PHPMailer function mailPassthru adds a fifth parameter to mail instead of proper detection (and use four parameters if PHP is in safe mode). This results in a kindof misleading error "Could not instantiate mail function" and the troubleshooting guide wrongly pointing in the direction to search for server issues.
Please either fix the detection, show a proper message and / or adjust the troubleshooting guide.
Took me an hour!
Thank you.
The text was updated successfully, but these errors were encountered: